diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-08-11 19:01:04 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-08-11 19:01:04 +0000 |
commit | 4af5e4ef5ee0fc43bbb82f9c182cff982b14eb3e (patch) | |
tree | c67b69c86c3c493618394b8e96b0db3238580930 | |
parent | 0cfa9713f78837542895769919c915d54aaf705a (diff) | |
download | ffmpeg-4af5e4ef5ee0fc43bbb82f9c182cff982b14eb3e.tar.gz |
fix msmpeg4 seek
Originally committed as revision 68 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263dec.c | 4 |
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 |