diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-09 17:41:50 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-05 19:28:28 +0200 |
commit | 781c7a6217e1afe68c85c500ae16b4bc7ea7b033 (patch) | |
tree | 1e3a1a0f6d7bc2388b751bf35effbac8c1c2ba97 /libavformat/aviobuf.c | |
parent | 9b9a61ca77c65c0dbc71a94cc80aac0f4453999b (diff) |
avformat/aviobuf, nutenc: Move ff_puv_v, ff_get_v_length to nutenc.c
and make it static again.
These functions have been moved from nutenc to aviobuf and internal.h
in f8280ff4c00eeaa245085fa9691035203abd168c in order to use them in a
forthcoming patch in utils.c. Said patch never happened, so this commit
moves them back and makes them static, effectively reverting said
commit as well as f8280ff4c00eeaa245085fa9691035203abd168c (which added
the ff-prefix to these functions).
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 85c01c938a..eb0387bdf7 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -432,26 +432,6 @@ PUT_STR16(be, 1) #undef PUT_STR16 -int ff_get_v_length(uint64_t val) -{ - int i = 1; - - while (val >>= 7) - i++; - - return i; -} - -void ff_put_v(AVIOContext *bc, uint64_t val) -{ - int i = ff_get_v_length(val); - - while (--i > 0) - avio_w8(bc, 128 | (uint8_t)(val >> (7*i))); - - avio_w8(bc, val & 127); -} - void avio_wl64(AVIOContext *s, uint64_t val) { avio_wl32(s, (uint32_t)(val & 0xffffffff)); |