mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-28 11:27:30 +08:00
fix interlaced decoding, original patch from reimar
Originally committed as revision 12349 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -126,11 +126,8 @@ static int gif_read_image(GifState *s)
|
|||||||
y1 += 8;
|
y1 += 8;
|
||||||
ptr += linesize * 8;
|
ptr += linesize * 8;
|
||||||
if (y1 >= height) {
|
if (y1 >= height) {
|
||||||
y1 = 4;
|
y1 = pass ? 2 : 4;
|
||||||
if (pass == 0)
|
ptr = ptr1 + linesize * y1;
|
||||||
ptr = ptr1 + linesize * 4;
|
|
||||||
else
|
|
||||||
ptr = ptr1 + linesize * 2;
|
|
||||||
pass++;
|
pass++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user