mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-11 18:37:55 +08:00
add a Creative VOC (de)muxer
Originally committed as revision 4967 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user