From ea82552c09b5c35528d0d8d79ed6b2879e5e3299 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 25 Mar 2007 00:12:24 +0000 Subject: [PATCH] return error if loop has ended before decoding image Originally committed as revision 8503 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/gifdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 4d08b76aed..386c039c9c 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -273,6 +273,7 @@ static int gif_parse_next_image(GifState *s) return -1; } } + return -1; } static int gif_decode_init(AVCodecContext *avctx)