Commit 4dae804d authored by Clément Bœsch's avatar Clément Bœsch

lavfi/volume: use copy props helper instead of incomplete manual code.

parent eb054a96
...@@ -234,7 +234,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -234,7 +234,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
out_buf = ff_get_audio_buffer(inlink, nb_samples); out_buf = ff_get_audio_buffer(inlink, nb_samples);
if (!out_buf) if (!out_buf)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
out_buf->pts = buf->pts; av_frame_copy_props(out_buf, buf);
} }
if (vol->precision != PRECISION_FIXED || vol->volume_i > 0) { if (vol->precision != PRECISION_FIXED || vol->volume_i > 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