af_earwax: copy input buffer properties to output
authorStefano Sabatini <stefasab@gmail.com>
Sat, 5 Nov 2011 01:44:02 +0000 (02:44 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sat, 5 Nov 2011 01:45:08 +0000 (02:45 +0100)
In particular, fix timestamps, partially address trac ticket #375.

libavfilter/af_earwax.c

index 4e14c9f..b8c5de3 100644 (file)
@@ -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];