diff h263dec.c @ 4386:09849d8689d6 libavcodec

1/0 fix
author michael
date Mon, 22 Jan 2007 22:27:02 +0000
parents bbe0bc387a19
children 5bcb6208ac58
line wrap: on
line diff
--- a/h263dec.c	Mon Jan 22 01:18:33 2007 +0000
+++ b/h263dec.c	Mon Jan 22 22:27:02 2007 +0000
@@ -729,7 +729,7 @@
     decode_slice(s);
     while(s->mb_y<s->mb_height){
         if(s->msmpeg4_version){
-            if(s->mb_x!=0 || (s->mb_y%s->slice_height)!=0 || get_bits_count(&s->gb) > s->gb.size_in_bits)
+            if(s->slice_height==0 || s->mb_x!=0 || (s->mb_y%s->slice_height)!=0 || get_bits_count(&s->gb) > s->gb.size_in_bits)
                 break;
         }else{
             if(ff_h263_resync(s)<0)