Commit 701da43f authored by conrad's avatar conrad

Simplify put_ebml_id()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10351 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f2f5bd7a
......@@ -74,13 +74,9 @@ static int ebml_id_size(unsigned int id)
static void put_ebml_id(ByteIOContext *pb, unsigned int id)
{
if (id >= 0x3fffff)
put_byte(pb, id >> 24);
if (id >= 0x7fff)
put_byte(pb, id >> 16);
if (id >= 0xff)
put_byte(pb, id >> 8);
put_byte(pb, id);
int i = ebml_id_size(id);
while (i--)
put_byte(pb, id >> (i*8));
}
/**
......
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