Commit f2f5bd7a authored by conrad's avatar conrad

Move ebml_id_size()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10350 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d16cd9f8
......@@ -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 *pb, unsigned int id)
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"
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment