diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-02-09 22:52:23 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-02-09 22:52:23 +0000 |
commit | ea395e8c6c6eabc5ddbbe79ce004f51cecc0065b (patch) | |
tree | d5afab047090168ad609db9e6f635ce3a61c34d8 /libavformat/aviobuf.c | |
parent | 9b2283cc3352b1f446814f0c6fa5230978b9ee78 (diff) | |
download | ffmpeg-ea395e8c6c6eabc5ddbbe79ce004f51cecc0065b.tar.gz |
add a Creative VOC (de)muxer
Originally committed as revision 4967 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 14 |
1 files changed, 14 insertions, 0 deletions
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; |