commit | 525782f33ff4be92bb27967c021fc244c92bdebc | [log] [tgz] |
---|---|---|
author | Zdenek Kabelac <[email protected]> | Tue Oct 23 19:02:55 2001 |
committer | Zdenek Kabelac <[email protected]> | Tue Oct 23 19:02:55 2001 |
tree | cb735850e6194841186cc77850154dc7833b2d64 | |
parent | 9736722ad7f297457166b9fd0e3108eb0405d0b1 [diff] [blame] |
* prevent crash in decoder Originally committed as revision 179 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index aa42029..01e3d54 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c
@@ -664,7 +664,7 @@ /* 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;