aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2007-09-05 00:22:39 +0000
committerDavid Conrad <lessen42@gmail.com>2007-09-05 00:22:39 +0000
commitcf4f763be1cf7b5fb1f02e7c19a55a496c2c4ec5 (patch)
tree6fb28ed7e1040df29e8ad44ba557e8dfd53a01d5
parent67143c0f69af24781fc1fb4572035c5bae64a6ea (diff)
downloadffmpeg-cf4f763be1cf7b5fb1f02e7c19a55a496c2c4ec5.tar.gz
Simplify
Originally committed as revision 10295 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 705d1f936a..d28b7a8205 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -43,7 +43,7 @@ static void put_ebml_id(ByteIOContext *pb, unsigned int id)
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?