|
|
@ -386,7 +386,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) |
|
|
|
memcpy(P, s->stream_ptr, 4); |
|
|
|
memcpy(P, s->stream_ptr, 4); |
|
|
|
s->stream_ptr += 4; |
|
|
|
s->stream_ptr += 4; |
|
|
|
|
|
|
|
|
|
|
|
if ((P[0] <= P[1]) && (P[2] <= P[3])) { |
|
|
|
if (P[0] <= P[1]) { |
|
|
|
|
|
|
|
if (P[2] <= P[3]) { |
|
|
|
|
|
|
|
|
|
|
|
/* 1 of 4 colors for each pixel, need 16 more bytes */ |
|
|
|
/* 1 of 4 colors for each pixel, need 16 more bytes */ |
|
|
|
CHECK_STREAM_PTR(16); |
|
|
|
CHECK_STREAM_PTR(16); |
|
|
@ -400,7 +401,7 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) |
|
|
|
s->pixel_ptr += s->line_inc; |
|
|
|
s->pixel_ptr += s->line_inc; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else if ((P[0] <= P[1]) && (P[2] > P[3])) { |
|
|
|
} else { |
|
|
|
uint32_t flags; |
|
|
|
uint32_t flags; |
|
|
|
|
|
|
|
|
|
|
|
/* 1 of 4 colors for each 2x2 block, need 4 more bytes */ |
|
|
|
/* 1 of 4 colors for each 2x2 block, need 4 more bytes */ |
|
|
@ -418,7 +419,9 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) |
|
|
|
s->pixel_ptr += s->stride * 2; |
|
|
|
s->pixel_ptr += s->stride * 2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else if ((P[0] > P[1]) && (P[2] <= P[3])) { |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if (P[2] <= P[3]) { |
|
|
|
uint64_t flags; |
|
|
|
uint64_t flags; |
|
|
|
|
|
|
|
|
|
|
|
/* 1 of 4 colors for each 2x1 block, need 8 more bytes */ |
|
|
|
/* 1 of 4 colors for each 2x1 block, need 8 more bytes */ |
|
|
@ -432,7 +435,6 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) |
|
|
|
} |
|
|
|
} |
|
|
|
s->pixel_ptr += s->stride; |
|
|
|
s->pixel_ptr += s->stride; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uint64_t flags; |
|
|
|
uint64_t flags; |
|
|
|
|
|
|
|
|
|
|
@ -448,6 +450,7 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) |
|
|
|
s->pixel_ptr += s->stride * 2; |
|
|
|
s->pixel_ptr += s->stride * 2; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* report success */ |
|
|
|
/* report success */ |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|