vqavideo: fix return type
Fixes Ticket2281 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -529,7 +529,7 @@ static void vqa_decode_chunk(VqaContext *s)
|
|||||||
|
|
||||||
if (chunk_size > MAX_CODEBOOK_SIZE - s->next_codebook_buffer_index) {
|
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 (0x%X bytes)\n", chunk_size);
|
||||||
return AVERROR_INVALIDDATA;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* accumulate partial codebook */
|
/* accumulate partial codebook */
|
||||||
@@ -557,7 +557,7 @@ static void vqa_decode_chunk(VqaContext *s)
|
|||||||
|
|
||||||
if (chunk_size > MAX_CODEBOOK_SIZE - s->next_codebook_buffer_index) {
|
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 (0x%X bytes)\n", chunk_size);
|
||||||
return AVERROR_INVALIDDATA;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* accumulate partial codebook */
|
/* accumulate partial codebook */
|
||||||
|
Reference in New Issue
Block a user