[FFmpeg-cvslog] lavfi/volume: use copy props helper instead of incomplete manual code.

Clément Bœsch git at videolan.org
Sun Mar 31 12:03:27 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Fri Mar 29 12:11:24 2013 +0100| [4dae804d3c6d2886fa6f2b86c0bf7b1d8fce0c91] | committer: Clément Bœsch

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4dae804d3c6d2886fa6f2b86c0bf7b1d8fce0c91
---

 libavfilter/af_volume.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 447e8d5..0dccac8 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) {



More information about the ffmpeg-cvslog mailing list