af_earwax: copy input buffer properties to output

In particular, fix timestamps, partially address trac ticket #375.
pull/2/head
Stefano Sabatini 13 years ago
parent fa4f06ab5e
commit 3a1045dfda
  1. 2
      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];

Loading…
Cancel
Save