Mercurial > libavformat.hg
diff aviobuf.c @ 937:a887adfe9dc5 libavformat
add a Creative VOC (de)muxer
author | aurel |
---|---|
date | Thu, 09 Feb 2006 22:52:23 +0000 |
parents | dbc0145bbf11 |
children | 5a743f6f836a |
line wrap: on
line diff
--- a/aviobuf.c Wed Feb 08 17:35:44 2006 +0000 +++ b/aviobuf.c Thu Feb 09 22:52:23 2006 +0000 @@ -239,6 +239,12 @@ 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 @@ 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;