diff h263dec.c @ 51:6ea595d66852 libavcodec

fix msmpeg4 seek
author glantau
date Sat, 11 Aug 2001 19:01:04 +0000
parents 4d50c7d89e0f
children 41791691746f
line wrap: on
line diff
--- a/h263dec.c	Sat Aug 11 19:00:43 2001 +0000
+++ b/h263dec.c	Sat Aug 11 19:01:04 2001 +0000
@@ -107,6 +107,10 @@
     if (ret < 0)
         return -1;
 
+    /* make sure we start with an I-Frame */
+    if (!s->slice_height && (s->pict_type != I_TYPE))
+        return -1;
+
     MPV_frame_start(s);
 
 #ifdef DEBUG