summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2001-10-23 19:02:55 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2001-10-23 19:02:55 +0000
commit525782f33ff4be92bb27967c021fc244c92bdebc (patch)
treecb735850e6194841186cc77850154dc7833b2d64 /libavcodec
parent9736722ad7f297457166b9fd0e3108eb0405d0b1 (diff)
downloadffmpeg-streaming-525782f33ff4be92bb27967c021fc244c92bdebc.zip
ffmpeg-streaming-525782f33ff4be92bb27967c021fc244c92bdebc.tar.gz
* 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.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;
OpenPOWER on IntegriCloud