changeset 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 c3fc09466f92
children d1770a34e4f6
files msmpeg4.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
 }