Mercurial > libavcodec.hg
diff msmpeg4.c @ 122:56e34b70ef5d libavcodec
* prevent crash in decoder
author | kabi |
---|---|
date | Tue, 23 Oct 2001 19:02:55 +0000 |
parents | 11ce5e672961 |
children | cf37da86d990 |
line wrap: on
line diff
--- a/msmpeg4.c Tue Oct 23 15:55:54 2001 +0000 +++ b/msmpeg4.c Tue Oct 23 19:02:55 2001 +0000 @@ -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;