Commit f29a4c36 authored by conrad's avatar conrad

Downgrade severity of leftover bits in header packets, and don't check for the comment header

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15469 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5bd5c1fe
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment