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

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


Author: conrad
Date: Fri Aug 10 01:37:22 2007
New Revision: 664

Log:
Move ebml_id_size()


Modified:
   matroska/matroskaenc.c

Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c	(original)
+++ matroska/matroskaenc.c	Fri Aug 10 01:37:22 2007
@@ -67,6 +67,11 @@ typedef struct MatroskaMuxContext {
     struct AVMD5    *md5_ctx;
 } MatroskaMuxContext;
 
+static int ebml_id_size(unsigned int id)
+{
+    return (av_log2(id+1)-1)/7+1;
+}
+
 static void put_ebml_id(ByteIOContext *pb, unsigned int id)
 {
     if (id >= 0x3fffff)
@@ -78,11 +83,6 @@ static void put_ebml_id(ByteIOContext *p
     put_byte(pb, id);
 }
 
-static int ebml_id_size(unsigned int id)
-{
-    return (av_log2(id+1)-1)/7+1;
-}
-
 /**
  * Write an EBML size meaning "unknown size"
  *



More information about the FFmpeg-soc mailing list