[FFmpeg-cvslog] vqavideo: fix return type

Michael Niedermayer git at videolan.org
Thu Feb 28 04:30:37 CET 2013


ffmpeg | branch: release/0.5 | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 20 00:47:13 2013 +0100| [01c90eea6cc08bab89322175b4c50ae8a96fcc2b] | committer: Michael Niedermayer

vqavideo: fix return type

Fixes Ticket2281

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 1fd86f9a2136165205b0370d5a6e916499f1da7f)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01c90eea6cc08bab89322175b4c50ae8a96fcc2b
---

 libavcodec/vqavideo.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vqavideo.c b/libavcodec/vqavideo.c
index 18fced7..9edee58 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 */



More information about the ffmpeg-cvslog mailing list