39 uint8_t **poutbuf,
int *poutbuf_size,
40 const uint8_t *buf,
int buf_size,
51 *poutbuf = (uint8_t*) buf;
52 *poutbuf_size = buf_size;
77 av_log_missing_feature(avctx,
"PCE based channel configuration, where the PCE is not the first syntax element is", 0);
98 memcpy(avctx->
extradata + 2, pce_data, pce_size);
104 *poutbuf = (uint8_t*) buf;
105 *poutbuf_size = buf_size;
static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4 ADTS header and removes the ADTS h...
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
struct AACBSFContext AACBSFContext
static int get_bits_count(const GetBitContext *s)
bitstream reader API header.
void av_log(void *avcl, int level, const char *fmt,...)
static void put_bits(PutBitContext *s, int n, unsigned int value)
Write up to 31 bits into a bitstream.
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
#define AAC_ADTS_HEADER_SIZE
main external API structure.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int avpriv_aac_parse_header(GetBitContext *gbc, AACADTSHeaderInfo *hdr)
Parse AAC frame header.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
common internal api header.
static void flush_put_bits(PutBitContext *s)
Pad the end of the output stream with zeros.
static void init_put_bits(PutBitContext *s, uint8_t *buffer, int buffer_size)
Initialize the PutBitContext s.
#define MAX_PCE_SIZE
Maximum size of a PCE including the 3-bit ID_PCE.
AVBitStreamFilter ff_aac_adtstoasc_bsf
int avpriv_copy_pce_data(PutBitContext *pb, GetBitContext *gb)
void av_log_missing_feature(void *avc, const char *feature, int want_sample)
Log a generic warning message about a missing feature.