Commit ddf16467 authored by David Conrad's avatar David Conrad

Simplify

Originally committed as revision 10354 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 1c73478c
......@@ -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