aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-20 00:47:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-20 01:23:54 +0100
commit1fd86f9a2136165205b0370d5a6e916499f1da7f (patch)
tree860a421b0e1badede715ba4fb1381f8edda31e5d /libavcodec
parent377fabc9e687a3c73fdb235f773f6e9151378ca5 (diff)
downloadffmpeg-1fd86f9a2136165205b0370d5a6e916499f1da7f.tar.gz
vqavideo: fix return type
Fixes Ticket2281 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vqavideo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 6e1ce6c0d2..e7b2cae26a 100644
--- a/libavcodec/vqavideo.c
+++ b/libavcodec/vqavideo.c
@@ -529,7 +529,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 */
@@ -557,7 +557,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 */