From 2467d8d9eaae52eb8e18e276a44a15d1d8fd7f97 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Thu, 3 Nov 2011 20:41:17 -0400 Subject: ra288: return error if input buffer is too small --- libavcodec/ra288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/ra288.c') diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index c58bc31f62..ddbda1de4c 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 * -- cgit v1.2.3