comparison gifdec.c @ 3106:ed30b032fa7b libavformat

Fix decoding of interlaced gif, e.g. http://samples.mplayerhq.hu/GIF/7up.gif
author reimar
date Mon, 03 Mar 2008 13:16:29 +0000
parents d52c718e83f9
children 7a0230981402
comparison
equal deleted inserted replaced
3105:2b9c6bfc04a5 3106:ed30b032fa7b
362 case 0: 362 case 0:
363 case 1: 363 case 1:
364 y1 += 8; 364 y1 += 8;
365 ptr += linesize * 8; 365 ptr += linesize * 8;
366 if (y1 >= height) { 366 if (y1 >= height) {
367 y1 = 4; 367 y1 = pass == 0 ? 4 : 2;
368 if (pass == 0) 368 ptr = ptr1 + linesize * y1;
369 ptr = ptr1 + linesize * 4;
370 else
371 ptr = ptr1 + linesize * 2;
372 pass++; 369 pass++;
373 } 370 }
374 break; 371 break;
375 case 2: 372 case 2:
376 y1 += 4; 373 y1 += 4;