changeset 4874:f06463413858 libavcodec

simplify, patch by Mark Cox, melbournemark plus ffmpeg minus devel gmail com
author bcoudurier
date Sat, 21 Apr 2007 18:47:30 +0000
parents 6a1e340119df
children 90d7898ff5d5
files gifdec.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gifdec.c	Sat Apr 21 15:55:45 2007 +0000
+++ b/gifdec.c	Sat Apr 21 18:47:30 2007 +0000
@@ -258,16 +258,13 @@
 #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;