aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-20 00:47:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-28 03:50:15 +0100
commit01c90eea6cc08bab89322175b4c50ae8a96fcc2b (patch)
treebd9056669a62dec7b5d08c19d68ee7160420019e
parentd34cfb33afb8c6e3c349e71d752beb9234afbcf0 (diff)
downloadffmpeg-01c90eea6cc08bab89322175b4c50ae8a96fcc2b.tar.gz
vqavideo: fix return type
Fixes Ticket2281 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 1fd86f9a2136165205b0370d5a6e916499f1da7f) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vqavideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 18fced74f0..9edee58b2a 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -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 */