1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avcodec/mlpdec: Fail if the input is too small

This fixes a infinite loop
Fixes Ticket2986

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-27 20:12:37 +02:00
parent 9790a03e67
commit f7bea731d9

View File

@ -1070,7 +1070,7 @@ static int read_access_unit(AVCodecContext *avctx, void* data,
int ret;
if (buf_size < 4)
return 0;
return AVERROR_INVALIDDATA;
length = (AV_RB16(buf) & 0xfff) * 2;