From 4dae804d3c6d2886fa6f2b86c0bf7b1d8fce0c91 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Fri, 29 Mar 2013 12:11:24 +0100 Subject: lavfi/volume: use copy props helper instead of incomplete manual code. --- libavfilter/af_volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter') diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 447e8d57fe..0dccac8072 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -234,7 +234,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) out_buf = ff_get_audio_buffer(inlink, nb_samples); if (!out_buf) return AVERROR(ENOMEM); - out_buf->pts = buf->pts; + av_frame_copy_props(out_buf, buf); } if (vol->precision != PRECISION_FIXED || vol->volume_i > 0) { -- cgit v1.2.3