diff options
author | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:34 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2007-09-05 00:24:34 +0000 |
commit | 22ccb69a7f28daf50fc2f03335cddbc1c66181ec (patch) | |
tree | 256b4212bb6e0edce56835682c66e8113ab0aafe /libavformat/matroskaenc.c | |
parent | ec8f4ad9096439b73ab2e469dc7ea38c9d018682 (diff) | |
download | ffmpeg-22ccb69a7f28daf50fc2f03335cddbc1c66181ec.tar.gz |
Move ebml_id_size()
Originally committed as revision 10350 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index ce3ac24124..194d32082c 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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" * |