diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c index 0b20ab4d1d..568a010154 100644 --- a/libavcodec/mmvideo.c +++ b/libavcodec/mmvideo.c @@ -90,6 +90,9 @@ static void mm_decode_intra(MmContext * s, int half_horiz, int half_vert, const while(i= s->avctx->height) + return; + if (buf[i] & 0x80) { run_length = 1; color = buf[i]; @@ -138,6 +141,9 @@ static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const continue; } + if (y + half_vert >= s->avctx->height) + return; + for(i=0; i> (7-j)) & 1;