[FFmpeg-devel] [PATCH] fix interlaced gif
Reimar Döffinger
Reimar.Doeffinger
Sat Mar 1 22:46:29 CET 2008
Hello,
attached patch fixes decoding of http://samples.mplayerhq.hu/GIF/7up.gif
If there are no objections I will apply soon.
Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libavformat/gifdec.c
===================================================================
--- libavformat/gifdec.c (revision 12287)
+++ libavformat/gifdec.c (working copy)
@@ -364,11 +364,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 == 0 ? 4 : 2;
+ ptr = ptr1 + linesize * y1;
pass++;
}
break;
More information about the ffmpeg-devel
mailing list