Mercurial > libavcodec.hg
comparison gifdec.c @ 6462:745a4216b352 libavcodec
fix interlaced decoding, original patch from reimar
author | bcoudurier |
---|---|
date | Thu, 06 Mar 2008 09:45:59 +0000 |
parents | dfdff1ca78a7 |
children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
6461:73ed28ea2082 | 6462:745a4216b352 |
---|---|
124 case 0: | 124 case 0: |
125 case 1: | 125 case 1: |
126 y1 += 8; | 126 y1 += 8; |
127 ptr += linesize * 8; | 127 ptr += linesize * 8; |
128 if (y1 >= height) { | 128 if (y1 >= height) { |
129 y1 = 4; | 129 y1 = pass ? 2 : 4; |
130 if (pass == 0) | 130 ptr = ptr1 + linesize * y1; |
131 ptr = ptr1 + linesize * 4; | |
132 else | |
133 ptr = ptr1 + linesize * 2; | |
134 pass++; | 131 pass++; |
135 } | 132 } |
136 break; | 133 break; |
137 case 2: | 134 case 2: |
138 y1 += 4; | 135 y1 += 4; |