Originally committed as revision 18269 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -421,13 +421,13 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) · 420 unmodified lines | ||
| 421 | 421 | |
| 422 | 422 | } |
| 423 | 423 | } else { |
| 424 | − if (P[2] <= P[3]) { | |
| 425 | 424 | uint64_t flags; |
| 426 | 425 | |
| 427 | − /* 1 of 4 colors for each 2x1 block, need 8 more bytes */ | |
| 426 | + /* 1 of 4 colors for each 2x1 or 1x2 block, need 8 more bytes */ | |
| 428 | 427 | CHECK_STREAM_PTR(8); |
| 429 | 428 | |
| 430 | 429 | flags = bytestream_get_le64(&s->stream_ptr); |
| 430 | + if (P[2] <= P[3]) { | |
| 431 | 431 | for (y = 0; y < 8; y++) { |
| 432 | 432 | for (x = 0; x < 8; x += 2, flags >>= 2) { |
| 433 | 433 | s->pixel_ptr[x ] = |
| @@ -436,12 +436,6 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) · 2 unmodified lines | ||
| 436 | 436 | s->pixel_ptr += s->stride; |
| 437 | 437 | } |
| 438 | 438 | } else { |
| 439 | − uint64_t flags; | |
| 440 | − | |
| 441 | − /* 1 of 4 colors for each 1x2 block, need 8 more bytes */ | |
| 442 | − CHECK_STREAM_PTR(8); | |
| 443 | − | |
| 444 | − flags = bytestream_get_le64(&s->stream_ptr); | |
| 445 | 439 | for (y = 0; y < 8; y += 2) { |
| 446 | 440 | for (x = 0; x < 8; x++, flags >>= 2) { |
| 447 | 441 | s->pixel_ptr[x ] = |