diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-01-25 12:50:11 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-01-25 12:54:15 +0000 |
commit | 7003d650b0751c665ef8f6b62e8c01646f432599 (patch) | |
tree | 345ff90fd91d6dd88c7690bddf9e0a7e74a10e8a | |
parent | 51c7af9d32376df4522bc948e45fea5ef75af31c (diff) | |
download | ffmpeg-7003d650b0751c665ef8f6b62e8c01646f432599.tar.gz |
lavc/gifdec: remove obsolete check
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/gifdec.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index b43dd6e141..71d3d70214 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -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; |