changeset 51:6ea595d66852 libavcodec

fix msmpeg4 seek
author glantau
date Sat, 11 Aug 2001 19:01:04 +0000
parents 4ea4c10d03d8
children 1d796bdb2c2a
files h263dec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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