Commit e38bd839 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Update: Moved read_u*le to private.h

parent e909910d
......@@ -46,16 +46,6 @@ typedef struct {
ogg_int64_t firstgranulepos;
} misc_opus_info;
static inline ogg_uint16_t read_u16le(const unsigned char *in)
{
return in[0] | (in[1] << 8);
}
static inline ogg_uint32_t read_u32le(const unsigned char *in)
{
return in[0] | (in[1] << 8) | (in[2] << 16) | (in[3] << 24);
}
static inline const char * mapping_family_name(int mapping_family)
{
switch (mapping_family) {
......
......@@ -33,6 +33,16 @@ typedef struct _stream_processor {
void *data;
} stream_processor;
static inline ogg_uint16_t read_u16le(const unsigned char *in)
{
return in[0] | (in[1] << 8);
}
static inline ogg_uint32_t read_u32le(const unsigned char *in)
{
return in[0] | (in[1] << 8) | (in[2] << 16) | (in[3] << 24);
}
void info(const char *format, ...);
void warn(const char *format, ...);
void error(const char *format, ...);
......
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