From f9799401c0c8dc5241075d372f989a111841f7c1 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Fri, 10 Aug 2001 18:38:05 +0000 Subject: seeking works :-) CVS patchset: 406 CVS date: 2001/08/10 18:38:05 --- src/libffmpeg/libavcodec/h263dec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libffmpeg/libavcodec/h263dec.c') diff --git a/src/libffmpeg/libavcodec/h263dec.c b/src/libffmpeg/libavcodec/h263dec.c index 72a43e68f..24b4288e7 100644 --- a/src/libffmpeg/libavcodec/h263dec.c +++ b/src/libffmpeg/libavcodec/h263dec.c @@ -105,6 +105,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_PRINTS -- cgit v1.2.3