diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-18 03:22:39 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-18 03:23:17 +0400 |
commit | 4aed4f58465fa0d6940ce72c0dad90caab3ed36e (patch) | |
tree | b4ae9770a5c6994c321c843cda6e242f4079c891 /libavcodec/mlpdec.c | |
parent | e1d7d4bd13cdd8856a3611d1ea387ac733a7aebf (diff) |
mlpdec: dont leave a invalid huff_lsb in the context.
Fix assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index c7de13c15c..6d27417106 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -720,6 +720,7 @@ static int read_channel_params(MLPDecodeContext *m, unsigned int substr, if (cp->huff_lsbs > 24) { av_log(m->avctx, AV_LOG_ERROR, "Invalid huff_lsbs.\n"); + cp->huff_lsbs = 0; return AVERROR_INVALIDDATA; } |