]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/gifdec.c
cosmetics
[ffmpeg] / libavformat / gifdec.c
index 5803e5e5dc68ef331a85dfa1cb4d748b40c302d1..82a80c8dcf48ff68f3ee81d259c8d7c945f25023 100644 (file)
@@ -364,11 +364,8 @@ static int gif_read_image(GifState *s)
                 y1 += 8;
                 ptr += linesize * 8;
                 if (y1 >= height) {
-                    y1 = 4;
-                    if (pass == 0)
-                        ptr = ptr1 + linesize * 4;
-                    else
-                        ptr = ptr1 + linesize * 2;
+                    y1 = pass == 0 ? 4 : 2;
+                    ptr = ptr1 + linesize * y1;
                     pass++;
                 }
                 break;