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/cscd.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'libavcodec/cscd.c') diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c index e58cf7861d..45edca382c 100644 --- a/libavcodec/cscd.c +++ b/libavcodec/cscd.c @@ -216,9 +216,6 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, static av_cold int decode_init(AVCodecContext *avctx) { CamStudioContext *c = avctx->priv_data; - if (avcodec_check_dimensions(avctx, avctx->height, avctx->width) < 0) { - return 1; - } switch (avctx->bits_per_coded_sample) { case 16: avctx->pix_fmt = PIX_FMT_RGB555; break; case 24: avctx->pix_fmt = PIX_FMT_BGR24; break; -- cgit v1.2.3