Commit 525782f3 authored by Zdenek Kabelac's avatar Zdenek Kabelac

* prevent crash in decoder

Originally committed as revision 179 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9736722a
......@@ -664,7 +664,7 @@ int msmpeg4_decode_mb(MpegEncContext *s,
/* special slice handling */
if (s->mb_x == 0) {
if ((s->mb_y % s->slice_height) == 0) {
if (s->slice_height && (s->mb_y % s->slice_height) == 0) {
int wrap;
/* reset DC pred (set previous line to 1024) */
wrap = 2 * s->mb_width + 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment