[FFmpeg-cvslog] r10295 - trunk/libavformat/matroskaenc.c

conrad subversion
Wed Sep 5 02:22:39 CEST 2007


Author: conrad
Date: Wed Sep  5 02:22:39 2007
New Revision: 10295

Log:
Simplify


Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	(original)
+++ trunk/libavformat/matroskaenc.c	Wed Sep  5 02:22:39 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-cvslog mailing list