summaryrefslogtreecommitdiff
path: root/libavcodec/gifdec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-06 09:45:59 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-03-06 09:45:59 +0000
commit30400f0d03f080c5880ba6c1e728ca35264abd8f (patch)
tree94d2ae2ff81098bf3980758b8adedad6e904a419 /libavcodec/gifdec.c
parent9dc92a38a0459109951e612c45f0323a90829e50 (diff)
downloadffmpeg-30400f0d03f080c5880ba6c1e728ca35264abd8f.tar.gz
fix interlaced decoding, original patch from reimar
Originally committed as revision 12349 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r--libavcodec/gifdec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 8f0252694b..d8f67b4640 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -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;