aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Cox <melbournemark+ffmpeg@gmail.com>2007-04-21 18:47:30 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-04-21 18:47:30 +0000
commit94cebc5641db4e8219168b1c5eac49a9059907ce (patch)
tree5c11d2b6736d0a6fe5802e59498991e6b70d49ee
parent1c02d96f6da5a3df2c0cab6c1f4513704978591d (diff)
downloadffmpeg-94cebc5641db4e8219168b1c5eac49a9059907ce.tar.gz
simplify, patch by Mark Cox, melbournemark plus ffmpeg minus devel gmail com
Originally committed as revision 8775 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/gifdec.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index df0c40eba1..de5cab952e 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -258,16 +258,13 @@ static int gif_parse_next_image(GifState *s)
#endif
switch (code) {
case ',':
- if (gif_read_image(s) < 0)
- return -1;
- return 0;
- case ';':
- /* end of image */
- return -1;
+ return gif_read_image(s);
case '!':
if (gif_read_extension(s) < 0)
return -1;
break;
+ case ';':
+ /* end of image */
default:
/* error or erroneous EOF */
return -1;