diff msmpeg4.c @ 769:9f8c4905928b libavcodec

fixing decoding of streams with no keyframe at the start
author michaelni
date Fri, 25 Oct 2002 16:06:32 +0000
parents 21b506d700cc
children ab67f85da840
line wrap: on
line diff
--- a/msmpeg4.c	Fri Oct 25 13:39:47 2002 +0000
+++ b/msmpeg4.c	Fri Oct 25 16:06:32 2002 +0000
@@ -1170,6 +1170,8 @@
         break;
     }
     
+    s->slice_height= s->mb_height; //to avoid 1/0 if the first frame isnt a keyframe
+    
     return 0;
 }