Commit c67a90bb authored by conrad's avatar conrad

Simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10354 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0398187a
......@@ -119,8 +119,8 @@ static void put_ebml_size(ByteIOContext *pb, uint64_t size, int minbytes)
return;
}
put_byte(pb, (0x80 >> (bytes-1)) | (size >> (bytes-1)*8));
for (i = bytes - 2; i >= 0; i--)
size |= 1ULL << bytes*7;
for (i = bytes - 1; i >= 0; i--)
put_byte(pb, size >> 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