aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-11 19:01:04 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-11 19:01:04 +0000
commit4af5e4ef5ee0fc43bbb82f9c182cff982b14eb3e (patch)
treec67b69c86c3c493618394b8e96b0db3238580930
parent0cfa9713f78837542895769919c915d54aaf705a (diff)
downloadffmpeg-4af5e4ef5ee0fc43bbb82f9c182cff982b14eb3e.tar.gz
fix msmpeg4 seek
Originally committed as revision 68 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h263dec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 8bbd3a7580..e2c4d208d9 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -107,6 +107,10 @@ static int h263_decode_frame(AVCodecContext *avctx,
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