|
|
|
@@ -538,7 +538,8 @@ static int vqa_decode_chunk(VqaContext *s) |
|
|
|
chunk_size = bytestream2_get_be32(&s->gb); |
|
|
|
|
|
|
|
if (chunk_size > MAX_CODEBOOK_SIZE - s->next_codebook_buffer_index) { |
|
|
|
av_log(s->avctx, AV_LOG_ERROR, "cbp0 chunk too large (0x%X bytes)\n", chunk_size); |
|
|
|
av_log(s->avctx, AV_LOG_ERROR, "cbp0 chunk too large (%u bytes)\n", |
|
|
|
chunk_size); |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
} |
|
|
|
|
|
|
|
@@ -566,7 +567,8 @@ static int vqa_decode_chunk(VqaContext *s) |
|
|
|
chunk_size = bytestream2_get_be32(&s->gb); |
|
|
|
|
|
|
|
if (chunk_size > MAX_CODEBOOK_SIZE - s->next_codebook_buffer_index) { |
|
|
|
av_log(s->avctx, AV_LOG_ERROR, "cbpz chunk too large (0x%X bytes)\n", chunk_size); |
|
|
|
av_log(s->avctx, AV_LOG_ERROR, "cbpz chunk too large (%u bytes)\n", |
|
|
|
chunk_size); |
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
} |
|
|
|
|
|
|
|
|