Commit 01c90eea authored by Michael Niedermayer's avatar Michael Niedermayer

vqavideo: fix return type

Fixes Ticket2281
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1fd86f9a)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d34cfb33
......@@ -528,7 +528,7 @@ static void vqa_decode_chunk(VqaContext *s)
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);
return AVERROR_INVALIDDATA;
return;
}
/* accumulate partial codebook */
......@@ -556,7 +556,7 @@ static void vqa_decode_chunk(VqaContext *s)
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);
return AVERROR_INVALIDDATA;
return;
}
/* accumulate partial codebook */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment