diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-22 14:40:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-22 18:09:20 +0200 |
commit | 77ef538818678fd8bcdf37b77923d52543b750f0 (patch) | |
tree | ba8415e550a737df2f7f53af0035b9550e3fb6a4 | |
parent | 55ae13e3deffa21027a44f31b4ae2f53a4fa7426 (diff) | |
download | ffmpeg-77ef538818678fd8bcdf37b77923d52543b750f0.tar.gz |
avcodec/vcr1: Fix bitstream input size check
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/vcr1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index c1393b558f..7cb740508f 100644 --- a/libavcodec/vcr1.c +++ b/libavcodec/vcr1.c @@ -55,7 +55,7 @@ static int vcr1_decode_frame(AVCodecContext *avctx, void *data, const uint8_t *bytestream_end = bytestream + avpkt->size; int i, x, y, ret; - if(avpkt->size < 16 + avctx->height + avctx->width*avctx->height*5/8){ + if(avpkt->size < 32 + avctx->height + avctx->width*avctx->height*5/8){ av_log(avctx, AV_LOG_ERROR, "Insufficient input data.\n"); return AVERROR(EINVAL); } |