Mercurial > libavformat.hg
changeset 2426:3d50766df97d libavformat
Simplify
author | conrad |
---|---|
date | Wed, 05 Sep 2007 00:22:39 +0000 |
parents | 8c51e92edd7d |
children | 407d3205f02d |
files | matroskaenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/matroskaenc.c Wed Sep 05 00:22:37 2007 +0000 +++ b/matroskaenc.c Wed Sep 05 00:22:39 2007 +0000 @@ -43,7 +43,7 @@ static void put_ebml_size(ByteIOContext *pb, uint64_t size, int minbytes) { int bytes = minbytes; - while (size >> (bytes*8 + 7-bytes) > 0) bytes++; + while (size >> (bytes*7 + 7)) bytes++; // sizes larger than this are currently undefined in EBML // XXX: error condition?