lavfi/pan: copy ref props after filtering samples.

At least PTS needs to be copied to avoid breaking options such as -t in
ffmpeg.
This commit is contained in:
Clément Bœsch 2012-01-31 08:20:42 +01:00
parent c79eddaff1
commit 85c66793d7
1 changed files with 4 additions and 0 deletions

View File

@ -360,6 +360,10 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
pan->filter_samples(pan, outsamples, insamples, n);
avfilter_copy_buffer_ref_props(outsamples, insamples);
outsamples->audio->channel_layout = outlink->channel_layout;
outsamples->audio->planar = outlink->planar;
avfilter_filter_samples(outlink, outsamples);
avfilter_unref_buffer(insamples);
}