changeset 122:56e34b70ef5d libavcodec

* prevent crash in decoder
author kabi
date Tue, 23 Oct 2001 19:02:55 +0000
parents 3ecf2a90c65e
children 3073d4ea6ee5
files msmpeg4.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;