aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2006-02-09 22:52:23 +0000
committerAurelien Jacobs <aurel@gnuage.org>2006-02-09 22:52:23 +0000
commitea395e8c6c6eabc5ddbbe79ce004f51cecc0065b (patch)
treed5afab047090168ad609db9e6f635ce3a61c34d8 /libavformat/aviobuf.c
parent9b2283cc3352b1f446814f0c6fa5230978b9ee78 (diff)
downloadffmpeg-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.c14
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;