lavc/gifdec: remove obsolete check
authorPaul B Mahol <onemda@gmail.com>
Fri, 25 Jan 2013 12:50:11 +0000 (12:50 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 25 Jan 2013 12:54:15 +0000 (12:54 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/gifdec.c

index b43dd6e..71d3d70 100644 (file)
@@ -370,11 +370,6 @@ static int gif_read_header1(GifState *s)
     s->transparent_color_index = -1;
     s->screen_width = bytestream2_get_le16u(&s->gb);
     s->screen_height = bytestream2_get_le16u(&s->gb);
-    if(   (unsigned)s->screen_width  > 32767
-       || (unsigned)s->screen_height > 32767){
-        av_log(s->avctx, AV_LOG_ERROR, "picture size too large\n");
-        return AVERROR_INVALIDDATA;
-    }
 
     v = bytestream2_get_byteu(&s->gb);
     s->color_resolution = ((v & 0x70) >> 4) + 1;