[FFmpeg-cvslog] af_earwax: copy input buffer properties to output
Stefano Sabatini
git at videolan.org
Sat Nov 5 02:46:08 CET 2011
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Nov 5 02:44:02 2011 +0100| [3a1045dfda67216a744038475e47e6fcce252d54] | committer: Stefano Sabatini
af_earwax: copy input buffer properties to output
In particular, fix timestamps, partially address trac ticket #375.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a1045dfda67216a744038475e47e6fcce252d54
---
libavfilter/af_earwax.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c
index 4e14c9f..b8c5de3 100644
--- a/libavfilter/af_earwax.c
+++ b/libavfilter/af_earwax.c
@@ -124,6 +124,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
AVFilterBufferRef *outsamples =
avfilter_get_audio_buffer(inlink, AV_PERM_WRITE,
insamples->audio->nb_samples);
+ avfilter_copy_buffer_ref_props(outsamples, insamples);
+
taps = ((EarwaxContext *)inlink->dst->priv)->taps;
out = (int16_t *)outsamples->data[0];
in = (int16_t *)insamples ->data[0];
More information about the ffmpeg-cvslog
mailing list