Commit 27af8da1 authored by kabi's avatar kabi

* prevent crash in decoder


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@179 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 45c2b2c1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment