diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:44 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:44 +0000 |
commit | ddf164672931c6686e20b79174bcb797b2fbc4df (patch) | |
tree | 6257e0e5d83815019db471b3b70e89c57a196ed6 /libavformat/matroskaenc.c | |
parent | 1c73478c8ea2b2a525e71d2c333efcddd35e4fa6 (diff) | |
download | ffmpeg-ddf164672931c6686e20b79174bcb797b2fbc4df.tar.gz |
Simplify
Originally committed as revision 10354 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 0cb11d8157..35ed2623e7 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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); } |