aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-09-06 18:49:07 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-09-22 14:11:34 -0400
commitfda459cee7a4227c34dfbc5dca1427c00d0d792e (patch)
treefa79ba14e0fa913bdf47946c53f08736fe340d37 /libavcodec
parent0ac3b8fc4aeb1755717f44482f3236134a5b8405 (diff)
downloadffmpeg-fda459cee7a4227c34dfbc5dca1427c00d0d792e.tar.gz
8svx: log an error message if output buffer is too small
Based on a patch by Stefano Sabatini. git.videolan.org/ffmpeg.git commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/8svx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index 0f53d39a8d..af3b5fe789 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -83,8 +83,11 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, int *data_si
buf += 2;
}
- if (*data_size < buf_size * 2)
+ if (*data_size < buf_size * 2) {
+ av_log(avctx, AV_LOG_ERROR, "Provided buffer with size %d is too small.\n",
+ *data_size);
return AVERROR(EINVAL);
+ }
delta_decode(out_data, buf, buf_size, &esc->fib_acc, esc->table);