mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/gifdec: remove obsolete check
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
51c7af9d32
commit
7003d650b0
@ -370,11 +370,6 @@ static int gif_read_header1(GifState *s)
|
|||||||
s->transparent_color_index = -1;
|
s->transparent_color_index = -1;
|
||||||
s->screen_width = bytestream2_get_le16u(&s->gb);
|
s->screen_width = bytestream2_get_le16u(&s->gb);
|
||||||
s->screen_height = 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);
|
v = bytestream2_get_byteu(&s->gb);
|
||||||
s->color_resolution = ((v & 0x70) >> 4) + 1;
|
s->color_resolution = ((v & 0x70) >> 4) + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user