Commit 389d001a authored by conrad's avatar conrad

Simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10295 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent aac9709c
......@@ -43,7 +43,7 @@ static void put_ebml_id(ByteIOContext *pb, unsigned int id)
static void put_ebml_size(ByteIOContext *pb, uint64_t size, int minbytes)
{
int bytes = minbytes;
while (size >> (bytes*8 + 7-bytes) > 0) bytes++;
while (size >> (bytes*7 + 7)) bytes++;
// sizes larger than this are currently undefined in EBML
// XXX: error condition?
......
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