diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-11-05 12:37:52 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-11-05 12:37:52 +0000 |
commit | 290be34a745f502de052e127e9aa206209e3f55c (patch) | |
tree | be752989a431347f4cb6d1625dfa56fa0abfe247 | |
parent | 6e094f702639d150e5829f68fc9e28f1c532414d (diff) | |
download | ffmpeg-290be34a745f502de052e127e9aa206209e3f55c.tar.gz |
avcodec/brender_pix: stop calling av_image_check_size() twice
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/brender_pix.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/brender_pix.c b/libavcodec/brender_pix.c index 1089a389d0..23a46cc0ed 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; |