diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2001-10-23 19:02:55 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2001-10-23 19:02:55 +0000 |
commit | 525782f33ff4be92bb27967c021fc244c92bdebc (patch) | |
tree | cb735850e6194841186cc77850154dc7833b2d64 /libavcodec | |
parent | 9736722ad7f297457166b9fd0e3108eb0405d0b1 (diff) |
* prevent crash in decoder
Originally committed as revision 179 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/msmpeg4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c index aa42029989..01e3d5438c 100644 --- a/libavcodec/msmpeg4.c +++ b/libavcodec/msmpeg4.c @@ -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; |