63 96000, 88200, 64000, 48000, 44100, 32000,
64 24000, 22050, 16000, 12000, 11025, 8000, 7350
95 return *index == 0x0f ?
get_bits(gb, 24) :
100 int sync_extension,
void *logctx)
102 int specific_config_bitindex,
ret;
169 return specific_config_bitindex - start_bit_index;
172 #if LIBAVCODEC_VERSION_MAJOR < 59 174 int bit_size,
int sync_extension)
191 int size,
int sync_extension,
void *logctx)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
static int get_sample_rate(GetBitContext *gb, int *index)
int avpriv_mpeg4audio_get_config2(MPEG4AudioConfig *c, const uint8_t *buf, int size, int sync_extension, void *logctx)
Parse MPEG-4 systems extradata from a raw buffer to retrieve audio configuration. ...
const uint8_t ff_mpeg4audio_channels[14]
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
static int get_bits_count(const GetBitContext *s)
bitstream reader API header.
static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c)
Parse MPEG-4 audio configuration for ALS object type.
static int get_bits_left(GetBitContext *gb)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int ff_mpeg4audio_get_config_gb(MPEG4AudioConfig *c, GetBitContext *gb, int sync_extension, void *logctx)
Parse MPEG-4 systems extradata from a potentially unaligned GetBitContext to retrieve audio configura...
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
#define FF_ARRAY_ELEMS(a)
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
N Error Resilient Bit-Sliced Arithmetic Coding.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static int get_object_type(GetBitContext *gb)
const int avpriv_mpeg4audio_sample_rates[16]
Y Spectral Band Replication.
int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int bit_size, int sync_extension)
Parse MPEG-4 systems extradata from a raw buffer to retrieve audio configuration. ...
#define MKBETAG(a, b, c, d)
int sbr
-1 implicit, 1 presence
int ps
-1 implicit, 1 presence