Browse Source

Move ebml_id_size()

Originally committed as revision 10350 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad 18 years ago
parent
commit
22ccb69a7f
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      libavformat/matroskaenc.c

+ 5
- 5
libavformat/matroskaenc.c View File

@@ -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"
*


Loading…
Cancel
Save