From 603e5c0b711171fd0110745f4c1e650ac6c26760 Mon Sep 17 00:00:00 2001 From: Michael Chinen Date: Fri, 9 Jul 2010 12:14:33 +0000 Subject: 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 --- libavformat/internal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index 6ff28d3fad..9b68e9e49d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -157,4 +157,14 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, 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 */ -- cgit v1.2.3