[FFmpeg-cvslog] msmpeg4dec: fix coeff index
Michael Niedermayer
git at videolan.org
Wed Dec 12 17:58:34 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 12 16:56:10 2012 +0100| [03b9d4a7dc7cb399587b6148617cef59b36b3a4b] | committer: Michael Niedermayer
msmpeg4dec: fix coeff index
Fixes assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03b9d4a7dc7cb399587b6148617cef59b36b3a4b
---
libavcodec/msmpeg4.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index e80db6d..00fac8c 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);
More information about the ffmpeg-cvslog
mailing list