[FFmpeg-cvslog] lavfi/pan: copy ref props after filtering samples.
Clément Bœsch
git at videolan.org
Thu Feb 2 14:41:14 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Jan 31 08:20:42 2012 +0100| [85c66793d793cc1cf5b087b6be7b9c04ae9ce9d1] | committer: Clément Bœsch
lavfi/pan: copy ref props after filtering samples.
At least PTS needs to be copied to avoid breaking options such as -t in
ffmpeg.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85c66793d793cc1cf5b087b6be7b9c04ae9ce9d1
---
libavfilter/af_pan.c | 4 ++++
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);
}
More information about the ffmpeg-cvslog
mailing list