[FFmpeg-soc] [soc]: r223 - matroska/matroskaenc.c

conrad subversion at mplayerhq.hu
Sun Jun 3 03:24:28 CEST 2007


Author: conrad
Date: Sun Jun  3 03:24:27 2007
New Revision: 223

Log:
Simplify

Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Sun Jun  3 03:24:27 2007
@@ -43,7 +43,7 @@ static void put_ebml_id(ByteIOContext *p
 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?



More information about the FFmpeg-soc mailing list