# HG changeset patch # User bcoudurier # Date 1204796759 0 # Node ID 745a4216b352cd4a07ad788c072bfab6473e7078 # Parent 73ed28ea2082f85cd27367b5b611282c82ba2084 fix interlaced decoding, original patch from reimar diff -r 73ed28ea2082 -r 745a4216b352 gifdec.c --- a/gifdec.c Thu Mar 06 07:30:41 2008 +0000 +++ b/gifdec.c Thu Mar 06 09:45:59 2008 +0000 @@ -126,11 +126,8 @@ y1 += 8; ptr += linesize * 8; if (y1 >= height) { - y1 = 4; - if (pass == 0) - ptr = ptr1 + linesize * 4; - else - ptr = ptr1 + linesize * 2; + y1 = pass ? 2 : 4; + ptr = ptr1 + linesize * y1; pass++; } break;