diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-27 00:23:27 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-27 00:23:27 +0000 |
commit | 73c87551e57d66da1ea6bfa2dfff45ca6cdda540 (patch) | |
tree | 7106ba09d630af3cd54428a67fdc547819955942 /libavcodec | |
parent | 7a42067176b7c670aadcefaf52895b60105e231e (diff) | |
download | ffmpeg-73c87551e57d66da1ea6bfa2dfff45ca6cdda540.tar.gz |
vp5: don't try decoding a P frame before any I frame was parsed
fix issue802
Originally committed as revision 16813 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vp5.c b/libavcodec/vp5.c index e47db0d2c1..3eecb562e4 100644 --- a/libavcodec/vp5.c +++ b/libavcodec/vp5.c @@ -64,7 +64,8 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size, avcodec_set_dimensions(s->avctx, 16*cols, 16*rows); return 2; } - } + } else if (!s->macroblocks) + return 0; return 1; } |