aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-03 20:41:17 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-08 12:36:56 -0500
commit2467d8d9eaae52eb8e18e276a44a15d1d8fd7f97 (patch)
tree0efe6e5c68ea270663c1b47cf2a05dfeb756ebc6 /libavcodec/ra288.c
parent0131e70af51ccaeb7faadef001a1aa1fea0271e2 (diff)
downloadffmpeg-2467d8d9eaae52eb8e18e276a44a15d1d8fd7f97.tar.gz
ra288: return error if input buffer is too small
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c2
1 files changed, 1 insertions, 1 deletions
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 *