return error if loop has ended before decoding image
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 25 Mar 2007 00:12:24 +0000 (00:12 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 25 Mar 2007 00:12:24 +0000 (00:12 +0000)
Originally committed as revision 8503 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/gifdec.c

index 4d08b76..386c039 100644 (file)
@@ -273,6 +273,7 @@ static int gif_parse_next_image(GifState *s)
             return -1;
         }
     }
+    return -1;
 }
 
 static int gif_decode_init(AVCodecContext *avctx)