From 525782f33ff4be92bb27967c021fc244c92bdebc Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 23 Oct 2001 19:02:55 +0000 Subject: * prevent crash in decoder Originally committed as revision 179 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/msmpeg4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') 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; -- cgit v1.2.3