Commit bde83bc0 authored by bcoudurier's avatar bcoudurier

add bytestream big endian 16/32 writing functions

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7200 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 438866a7
......@@ -47,6 +47,20 @@ static always_inline unsigned int bytestream_get_buffer(uint8_t **b, uint8_t *ds
return size;
}
static always_inline void bytestream_put_be32(uint8_t **b, const unsigned int value)
{
*(*b)++ = value >> 24;
*(*b)++ = value >> 16;
*(*b)++ = value >> 8;
*(*b)++ = value;
};
static always_inline void bytestream_put_be16(uint8_t **b, const unsigned int value)
{
*(*b)++ = value >> 8;
*(*b)++ = value;
}
static always_inline void bytestream_put_le32(uint8_t **b, const unsigned int value)
{
*(*b)++ = value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment