diff options
author | David Conrad <lessen42@gmail.com> | 2008-09-30 04:18:22 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2008-09-30 04:18:22 +0000 |
commit | 12ce1f3fc16ff192fef911f9562395607b8c027d (patch) | |
tree | 45951d6b022832f6a93ae438483f5da19cea9d27 /libavcodec/vp3.c | |
parent | 0c5f76f708a79a83dfc9e9f9a6bd3f945178e5f0 (diff) | |
download | ffmpeg-12ce1f3fc16ff192fef911f9562395607b8c027d.tar.gz |
Downgrade severity of leftover bits in header packets, and don't check for the comment header
Originally committed as revision 15469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index e0f2b21325..4ae06b5ec1 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2596,8 +2596,8 @@ static int theora_decode_init(AVCodecContext *avctx) av_log(avctx, AV_LOG_ERROR, "Unknown Theora config packet: %d\n", ptype&~0x80); break; } - if(8*header_len[i] != get_bits_count(&gb)) - av_log(avctx, AV_LOG_ERROR, "%d bits left in packet %X\n", 8*header_len[i] - get_bits_count(&gb), ptype); + if(ptype != 0x81 && 8*header_len[i] != get_bits_count(&gb)) + av_log(avctx, AV_LOG_WARNING, "%d bits left in packet %X\n", 8*header_len[i] - get_bits_count(&gb), ptype); if (s->theora < 0x030200) break; } |