Commit 3a1045df authored by Stefano Sabatini's avatar Stefano Sabatini

af_earwax: copy input buffer properties to output

In particular, fix timestamps, partially address trac ticket #375.
parent fa4f06ab
...@@ -124,6 +124,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) ...@@ -124,6 +124,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
AVFilterBufferRef *outsamples = AVFilterBufferRef *outsamples =
avfilter_get_audio_buffer(inlink, AV_PERM_WRITE, avfilter_get_audio_buffer(inlink, AV_PERM_WRITE,
insamples->audio->nb_samples); insamples->audio->nb_samples);
avfilter_copy_buffer_ref_props(outsamples, insamples);
taps = ((EarwaxContext *)inlink->dst->priv)->taps; taps = ((EarwaxContext *)inlink->dst->priv)->taps;
out = (int16_t *)outsamples->data[0]; out = (int16_t *)outsamples->data[0];
in = (int16_t *)insamples ->data[0]; in = (int16_t *)insamples ->data[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment