int lines;
int compressed_lines;
int starting_line;
- signed short line_packets;
+ int line_packets;
int y_ptr;
int byte_run;
int pixel_skip;
break;
if (y_ptr > pixel_limit)
return AVERROR_INVALIDDATA;
- line_packets = bytestream2_get_le16(&g2);
+ line_packets = sign_extend(bytestream2_get_le16(&g2), 16);
if ((line_packets & 0xC000) == 0xC000) {
// line skip opcode
line_packets = -line_packets;
int lines;
int compressed_lines;
- signed short line_packets;
+ int line_packets;
int y_ptr;
int byte_run;
int pixel_skip;
break;
if (y_ptr > pixel_limit)
return AVERROR_INVALIDDATA;
- line_packets = bytestream2_get_le16(&g2);
+ line_packets = sign_extend(bytestream2_get_le16(&g2), 16);
if (line_packets < 0) {
line_packets = -line_packets;
if (line_packets > s->avctx->height)
int lines;
int compressed_lines;
- signed short line_packets;
+ int line_packets;
int y_ptr;
int byte_run;
int pixel_skip;
break;
if (y_ptr > pixel_limit)
return AVERROR_INVALIDDATA;
- line_packets = bytestream2_get_le16(&g2);
+ line_packets = sign_extend(bytestream2_get_le16(&g2), 16);
if (line_packets < 0) {
line_packets = -line_packets;
if (line_packets > s->avctx->height)