mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-03-04 10:07:53 +00:00
Simplify
Originally committed as revision 10354 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1c73478c8e
commit
ddf1646729
@ -119,8 +119,8 @@ static void put_ebml_size(ByteIOContext *pb, uint64_t size, int minbytes)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
put_byte(pb, (0x80 >> (bytes-1)) | (size >> (bytes-1)*8));
|
size |= 1ULL << bytes*7;
|
||||||
for (i = bytes - 2; i >= 0; i--)
|
for (i = bytes - 1; i >= 0; i--)
|
||||||
put_byte(pb, size >> i*8);
|
put_byte(pb, size >> i*8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user