Mercurial > libavcodec.hg
changeset 6462:745a4216b352 libavcodec
fix interlaced decoding, original patch from reimar
author | bcoudurier |
---|---|
date | Thu, 06 Mar 2008 09:45:59 +0000 |
parents | 73ed28ea2082 |
children | 9f397992ddff |
files | gifdec.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;