From 4a49ab77c6bb2348992e1e70b14f2d1efaf7ddbb Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Tue, 13 Oct 2009 20:13:28 +0000 Subject: Remove unnecessary calls to avcodec_check_dimensions, the check is already done at a higher level. Originally committed as revision 20229 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/zmbvenc.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavcodec/zmbvenc.c') diff --git a/libavcodec/zmbvenc.c b/libavcodec/zmbvenc.c index 5a1428e4a8..0131b5d1f3 100644 --- a/libavcodec/zmbvenc.c +++ b/libavcodec/zmbvenc.c @@ -263,10 +263,6 @@ static av_cold int encode_init(AVCodecContext *avctx) return -1; } - if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { - return -1; - } - // Needed if zlib unused or init aborted before deflateInit memset(&(c->zstream), 0, sizeof(z_stream)); c->comp_size = avctx->width * avctx->height + 1024 + -- cgit v1.2.3