[FFmpeg-devel] [PATCH] lavfi/pan: use extended_data instead of data.

Nicolas George george at nsup.org
Tue Feb 11 15:16:33 CET 2014


Fix trac ticket #3380.

Signed-off-by: Nicolas George <george at nsup.org>
---
 libavfilter/af_pan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index d28f382..1b78515 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -370,7 +370,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
 
     if (!outsamples)
         return AVERROR(ENOMEM);
-    swr_convert(pan->swr, outsamples->data, n, (void *)insamples->data, n);
+    swr_convert(pan->swr, outsamples->extended_data, n,
+                (void *)insamples->extended_data, n);
     av_frame_copy_props(outsamples, insamples);
     outsamples->channel_layout = outlink->channel_layout;
     av_frame_set_channels(outsamples, outlink->channels);
-- 
1.8.5.3



More information about the ffmpeg-devel mailing list