[FFmpeg-devel] [PATCH] gifdec: drop pointless casting
Paul B Mahol
onemda at gmail.com
Thu Dec 20 18:32:57 CET 2012
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/gifdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 53b1bb8..248ebe0 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -370,8 +370,8 @@ 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){
+ if (s->screen_width > 32767 ||
+ s->screen_height > 32767) {
av_log(s->avctx, AV_LOG_ERROR, "picture size too large\n");
return AVERROR_INVALIDDATA;
}
--
1.7.11.4
More information about the ffmpeg-devel
mailing list