summaryrefslogtreecommitdiffstats
path: root/libavfilter/af_pan.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-01-31 08:20:42 +0100
committerClément Bœsch <ubitux@gmail.com>2012-02-02 14:31:18 +0100
commit85c66793d793cc1cf5b087b6be7b9c04ae9ce9d1 (patch)
tree67b01a190204e80708f4672f92c5ccd97364ba74 /libavfilter/af_pan.c
parentc79eddaff16492fe7eb5751d2101aebedc9d16cf (diff)
downloadffmpeg-streaming-85c66793d793cc1cf5b087b6be7b9c04ae9ce9d1.zip
ffmpeg-streaming-85c66793d793cc1cf5b087b6be7b9c04ae9ce9d1.tar.gz
lavfi/pan: copy ref props after filtering samples.
At least PTS needs to be copied to avoid breaking options such as -t in ffmpeg.
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r--libavfilter/af_pan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 1b12de7..354e771 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -360,6 +360,10 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
pan->filter_samples(pan, outsamples, insamples, n);
+ avfilter_copy_buffer_ref_props(outsamples, insamples);
+ outsamples->audio->channel_layout = outlink->channel_layout;
+ outsamples->audio->planar = outlink->planar;
+
avfilter_filter_samples(outlink, outsamples);
avfilter_unref_buffer(insamples);
}
OpenPOWER on IntegriCloud