changeset 2481:3d34222171b2 libavformat

Move ebml_id_size()
author conrad
date Wed, 05 Sep 2007 00:24:34 +0000
parents 158f2c199956
children d13c92b200a8
files matroskaenc.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/matroskaenc.c	Wed Sep 05 00:24:31 2007 +0000
+++ b/matroskaenc.c	Wed Sep 05 00:24:34 2007 +0000
@@ -67,6 +67,11 @@
     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 @@
     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"
  *