From 792cd6f291ddbc5da430d2273c7d9d5fcb1a8681 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Wed, 5 Sep 2001 17:08:18 +0000 Subject: enable seeking in incomplete avis CVS patchset: 568 CVS date: 2001/09/05 17:08:18 --- src/libffmpeg/libavcodec/h263dec.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libffmpeg/libavcodec/h263dec.c') diff --git a/src/libffmpeg/libavcodec/h263dec.c b/src/libffmpeg/libavcodec/h263dec.c index 758f9ed52..ec14c09e2 100644 --- a/src/libffmpeg/libavcodec/h263dec.c +++ b/src/libffmpeg/libavcodec/h263dec.c @@ -114,6 +114,14 @@ static int h263_decode_frame(AVCodecContext *avctx, if (ret < 0) return -1; + /* make sure we start with an I-frame */ + if (s->waiting_for_keyframe) { + if (s->pict_type != I_TYPE) + return -1; + else + s->waiting_for_keyframe = 0; + } + MPV_frame_start(s); #ifdef DEBUG -- cgit v1.2.3