summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-05 12:37:52 +0000
committerPaul B Mahol <onemda@gmail.com>2013-11-05 12:37:52 +0000
commit290be34a745f502de052e127e9aa206209e3f55c (patch)
treebe752989a431347f4cb6d1625dfa56fa0abfe247 /libavcodec
parent6e094f702639d150e5829f68fc9e28f1c532414d (diff)
avcodec/brender_pix: stop calling av_image_check_size() twice
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/brender_pix.c3
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;