[FFmpeg-cvslog] ra288: return error if input buffer is too small

Justin Ruggles git at videolan.org
Wed Nov 9 03:31:05 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Nov  3 20:41:17 2011 -0400| [2467d8d9eaae52eb8e18e276a44a15d1d8fd7f97] | committer: Justin Ruggles

ra288: return error if input buffer is too small

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

 libavcodec/ra288.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index c58bc31..ddbda1d 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -178,7 +178,7 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
         av_log(avctx, AV_LOG_ERROR,
                "Error! Input buffer is too small [%d<%d]\n",
                buf_size, avctx->block_align);
-        return 0;
+        return AVERROR_INVALIDDATA;
     }
 
     out_size = RA288_BLOCK_SIZE * RA288_BLOCKS_PER_FRAME *



More information about the ffmpeg-cvslog mailing list