diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-27 22:12:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-27 22:12:37 +0400 |
commit | f7bea731d955ec25a726abcd31862d3bd0183d58 (patch) | |
tree | 83dbda6a747b151073090ebf5c9e6fa9c7ac6283 /libavcodec/mlpdec.c | |
parent | 9790a03e67d3b34834ac7cce72feea88ee278d90 (diff) |
avcodec/mlpdec: Fail if the input is too small
This fixes a infinite loop
Fixes Ticket2986
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 059e4d0f74..961ed621b5 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -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; |