summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-05 17:08:18 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-05 17:08:18 +0000
commit792cd6f291ddbc5da430d2273c7d9d5fcb1a8681 (patch)
tree1f87fb4100b2cbddd8e6041d2e014c21444ce620 /src/libffmpeg/libavcodec/h263dec.c
parent74e0dd85e141aec325cbf660775e1b40bc6ab338 (diff)
downloadxine-lib-792cd6f291ddbc5da430d2273c7d9d5fcb1a8681.tar.gz
xine-lib-792cd6f291ddbc5da430d2273c7d9d5fcb1a8681.tar.bz2
enable seeking in incomplete avis
CVS patchset: 568 CVS date: 2001/09/05 17:08:18
Diffstat (limited to 'src/libffmpeg/libavcodec/h263dec.c')
-rw-r--r--src/libffmpeg/libavcodec/h263dec.c8
1 files changed, 8 insertions, 0 deletions
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