fix interlaced decoding, original patch from reimar

Originally committed as revision 12349 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-03-06 09:45:59 +00:00
parent 9dc92a38a0
commit 30400f0d03
1 changed files with 2 additions and 5 deletions

View File

@ -126,11 +126,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 ? 2 : 4;
ptr = ptr1 + linesize * y1;
pass++;
}
break;