[FFmpeg-cvslog] r12349 - trunk/libavcodec/gifdec.c
bcoudurier
subversion
Thu Mar 6 10:45:59 CET 2008
Author: bcoudurier
Date: Thu Mar 6 10:45:59 2008
New Revision: 12349
Log:
fix interlaced decoding, original patch from reimar
Modified:
trunk/libavcodec/gifdec.c
Modified: trunk/libavcodec/gifdec.c
==============================================================================
--- trunk/libavcodec/gifdec.c (original)
+++ trunk/libavcodec/gifdec.c Thu Mar 6 10:45:59 2008
@@ -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;
More information about the ffmpeg-cvslog
mailing list