af_earwax: copy input buffer properties to output

In particular, fix timestamps, partially address trac ticket #375.
This commit is contained in:
Stefano Sabatini 2011-11-05 02:44:02 +01:00
parent fa4f06ab5e
commit 3a1045dfda

View 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];