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

conrad subversion at mplayerhq.hu
Fri Aug 10 01:37:27 CEST 2007


Author: conrad
Date: Fri Aug 10 01:37:27 2007
New Revision: 668

Log:
Simplify


Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Fri Aug 10 01:37:27 2007
@@ -119,8 +119,8 @@ static void put_ebml_size(ByteIOContext 
         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);
 }
 



More information about the FFmpeg-soc mailing list