Mercurial > libavformat.hg
diff internal.h @ 6246:79fc252c65cd libavformat
move ff_get_v_length and ff_put_v from nutenc.c to internal.h/aviobuf.c
patch by Micheal Chinen < mchinen gmail >
author | janne |
---|---|
date | Fri, 09 Jul 2010 12:14:33 +0000 |
parents | fa244b4fe683 |
children | 7b8b71ff9a76 |
line wrap: on
line diff
--- a/internal.h Fri Jul 09 12:10:47 2010 +0000 +++ b/internal.h Fri Jul 09 12:14:33 2010 +0000 @@ -157,4 +157,14 @@ int ff_write_chained(AVFormatContext *dst, int dst_stream, AVPacket *pkt, AVFormatContext *src); +/** + * Get the length in bytes which is needed to store val as v. + */ +int ff_get_v_length(uint64_t val); + +/** + * Put val using a variable number of bytes. + */ +void ff_put_v(ByteIOContext *bc, uint64_t val); + #endif /* AVFORMAT_INTERNAL_H */