[FFmpeg-cvslog] lavc/utils: remove redundant call to ff_init_buffer_info

Marton Balint git at videolan.org
Mon Jul 6 00:23:00 CEST 2015


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Jul  5 19:02:01 2015 +0200| [3a19fe0048388442de7d8823e1b458f4865d207f] | committer: Michael Niedermayer

lavc/utils: remove redundant call to ff_init_buffer_info

It does the same as calling ff_decode_frame_props.

Signed-off-by: Marton Balint <cus at passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/utils.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e6d5227..f20cafc 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -892,8 +892,6 @@ static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
     ret = ff_decode_frame_props(avctx, frame);
     if (ret < 0)
         return ret;
-    if ((ret = ff_init_buffer_info(avctx, frame)) < 0)
-        return ret;
 
     if (hwaccel) {
         if (hwaccel->alloc_frame) {



More information about the ffmpeg-cvslog mailing list