diff xan.c @ 10397:d7ed9dcc78e3 libavcodec

Remove unnecessary calls to avcodec_check_dimensions, the check is already done at a higher level.
author reimar
date Tue, 13 Oct 2009 20:13:28 +0000
parents a3abf068e05e
children 633727ffa79a
line wrap: on
line diff
--- a/xan.c	Tue Oct 13 18:31:22 2009 +0000
+++ b/xan.c	Tue Oct 13 20:13:28 2009 +0000
@@ -74,9 +74,6 @@
 
     avctx->pix_fmt = PIX_FMT_PAL8;
 
-    if(avcodec_check_dimensions(avctx, avctx->width, avctx->height))
-        return -1;
-
     s->buffer1_size = avctx->width * avctx->height;
     s->buffer1 = av_malloc(s->buffer1_size);
     s->buffer2_size = avctx->width * avctx->height;