From ea395e8c6c6eabc5ddbbe79ce004f51cecc0065b Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 9 Feb 2006 22:52:23 +0000 Subject: add a Creative VOC (de)muxer Originally committed as revision 4967 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/aviobuf.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libavformat/aviobuf.c') diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 2a2fa1d04d..070917d091 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -239,6 +239,12 @@ void put_be16(ByteIOContext *s, unsigned int val) put_byte(s, val); } +void put_le24(ByteIOContext *s, unsigned int val) +{ + put_le16(s, val & 0xffff); + put_byte(s, val >> 16); +} + void put_be24(ByteIOContext *s, unsigned int val) { put_be16(s, val >> 8); @@ -396,6 +402,14 @@ unsigned int get_le16(ByteIOContext *s) return val; } +unsigned int get_le24(ByteIOContext *s) +{ + unsigned int val; + val = get_le16(s); + val |= get_byte(s) << 16; + return val; +} + unsigned int get_le32(ByteIOContext *s) { unsigned int val; -- cgit v1.2.3