projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cfa971
)
fix msmpeg4 seek
author
Fabrice Bellard
<fabrice@bellard.org>
Sat, 11 Aug 2001 19:01:04 +0000
(19:01 +0000)
committer
Fabrice Bellard
<fabrice@bellard.org>
Sat, 11 Aug 2001 19:01:04 +0000
(19:01 +0000)
Originally committed as revision 68 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h263dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/h263dec.c
b/libavcodec/h263dec.c
index
8bbd3a7
..
e2c4d20
100644
(file)
--- 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