repeat = get_bits(gb, 8);
if (i + repeat > 256 || get_bits_left(gb) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error reading huffman table\n");
- return -1;
+ return AVERROR_INVALIDDATA;
}
while (repeat--)
dst[i++] = val;
int method, interlace;
if (avctx->extradata_size < 4)
- return -1;
+ return AVERROR_INVALIDDATA;
method = avctx->extradata[0];
s->decorrelate = method & 64 ? 1 : 0;
}
if ((unsigned) (buf_size - table_size) >= INT_MAX / 8)
- return -1;
+ return AVERROR_INVALIDDATA;
init_get_bits(&s->gb, s->bitstream_buffer + table_size,
(buf_size - table_size) * 8);