[FFmpeg-cvslog] avcodec/brender_pix: stop calling av_image_check_size() twice

Paul B Mahol git at videolan.org
Tue Nov 5 13:39:39 CET 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov  5 12:37:52 2013 +0000| [290be34a745f502de052e127e9aa206209e3f55c] | committer: Paul B Mahol

avcodec/brender_pix: stop calling av_image_check_size() twice

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/brender_pix.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/brender_pix.c b/libavcodec/brender_pix.c
index 1089a38..23a46cc 100644
--- a/libavcodec/brender_pix.c
+++ b/libavcodec/brender_pix.c
@@ -128,9 +128,6 @@ static int brpix_decode_frame(AVCodecContext *avctx,
         return AVERROR_PATCHWELCOME;
     }
 
-    if (av_image_check_size(hdr.width, hdr.height, 0, avctx) < 0)
-        return AVERROR_INVALIDDATA;
-
     if ((ret = ff_set_dimensions(avctx, hdr.width, hdr.height)) < 0)
         return ret;
 



More information about the ffmpeg-cvslog mailing list