lavfi/volume: use copy props helper instead of incomplete manual code.
authorClément Bœsch <ubitux@gmail.com>
Fri, 29 Mar 2013 11:11:24 +0000 (12:11 +0100)
committerClément Bœsch <ubitux@gmail.com>
Sun, 31 Mar 2013 09:58:20 +0000 (11:58 +0200)
libavfilter/af_volume.c

index 447e8d5..0dccac8 100644 (file)
@@ -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) {