aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-27 20:12:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-27 20:12:37 +0200
commitf7bea731d955ec25a726abcd31862d3bd0183d58 (patch)
tree83dbda6a747b151073090ebf5c9e6fa9c7ac6283 /libavcodec
parent9790a03e67d3b34834ac7cce72feea88ee278d90 (diff)
downloadffmpeg-f7bea731d955ec25a726abcd31862d3bd0183d58.tar.gz
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')
-rw-r--r--libavcodec/mlpdec.c2
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;