diff options
author | Michael Chinen <mchinen@gmail.com> | 2010-07-09 12:14:33 +0000 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2010-07-09 12:14:33 +0000 |
commit | 603e5c0b711171fd0110745f4c1e650ac6c26760 (patch) | |
tree | f41ca1b95ded385739110c1abf420bc1c3710478 /libavformat/nutenc.c | |
parent | f8280ff4c00eeaa245085fa9691035203abd168c (diff) | |
download | ffmpeg-603e5c0b711171fd0110745f4c1e650ac6c26760.tar.gz |
move ff_get_v_length and ff_put_v from nutenc.c to internal.h/aviobuf.c
patch by Micheal Chinen < mchinen gmail >
Originally committed as revision 24140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 082d6d5ecc..87a7900b4b 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -241,27 +241,6 @@ static void build_frame_code(AVFormatContext *s){ nut->frame_code['N'].flags= FLAG_INVALID; } -/** - * Get the length in bytes which is needed to store val as v. - */ -static int ff_get_v_length(uint64_t val){ - int i=1; - - while(val>>=7) - i++; - - return i; -} - -static void ff_put_v(ByteIOContext *bc, uint64_t val){ - int i= ff_get_v_length(val); - - while(--i>0) - put_byte(bc, 128 | (val>>(7*i))); - - put_byte(bc, val&127); -} - static void put_tt(NUTContext *nut, StreamContext *nus, ByteIOContext *bc, uint64_t val){ val *= nut->time_base_count; val += nus->time_base - nut->time_base; |