diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-10 18:38:05 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-08-10 18:38:05 +0000 |
commit | f9799401c0c8dc5241075d372f989a111841f7c1 (patch) | |
tree | 029cd31073d3102c3cfbe4aa4a5676e5908f4520 /src/libffmpeg/libavcodec/h263dec.c | |
parent | f86d8e69cb6655f42575055862d6a9d5c4f6d2e5 (diff) | |
download | xine-lib-f9799401c0c8dc5241075d372f989a111841f7c1.tar.gz xine-lib-f9799401c0c8dc5241075d372f989a111841f7c1.tar.bz2 |
seeking works :-)
CVS patchset: 406
CVS date: 2001/08/10 18:38:05
Diffstat (limited to 'src/libffmpeg/libavcodec/h263dec.c')
-rw-r--r-- | src/libffmpeg/libavcodec/h263dec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |