diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-12 16:56:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-12 17:46:05 +0100 |
commit | 03b9d4a7dc7cb399587b6148617cef59b36b3a4b (patch) | |
tree | 42c0596a9799f73b9fe1747ba8a21f35e3ed8206 /libavcodec/msmpeg4.c | |
parent | 028cc42a1638e6f93a857f11c2568d1c3a51e612 (diff) | |
download | ffmpeg-03b9d4a7dc7cb399587b6148617cef59b36b3a4b.tar.gz |
msmpeg4dec: fix coeff index
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/msmpeg4.c')
-rw-r--r-- | libavcodec/msmpeg4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index e80db6dde5..00fac8c4b2 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -1145,6 +1145,7 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block, const int left= get_bits_left(&s->gb); if(((i+192 == 64 && level/qmul==-1) || !(s->err_recognition&(AV_EF_BITSTREAM|AV_EF_COMPLIANT))) && left>=0){ av_log(s->avctx, AV_LOG_ERROR, "ignoring overflow at %d %d\n", s->mb_x, s->mb_y); + i = 63; break; }else{ av_log(s->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", s->mb_x, s->mb_y); |