30#define LATM_HEADER 0x56e000
31#define LATM_MASK 0xFFE000
32#define LATM_SIZE_MASK 0x001FFF
55 for (
i = 0;
i < buf_size;
i++) {
85 const uint8_t **poutbuf,
int *poutbuf_size,
86 const uint8_t *buf,
int buf_size)
104 *poutbuf_size = buf_size;
static int parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
static av_cold void close(AVCodecParserContext *s)
#define PARSER_FLAG_COMPLETE_FRAMES
#define i(width, name, range_min, range_max)
static struct @346255127015250356166251341105367306144006377143 state
static int latm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
static int latm_find_frame_end(AVCodecParserContext *s1, const uint8_t *buf, int buf_size)
Find the end of the current frame in the bitstream.
const FFCodecParser ff_aac_latm_parser
av_cold void ff_parse_close(AVCodecParserContext *s)
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
Combine the (truncated) bitstream to a complete frame.
#define PARSER_CODEC_LIST(...)
main external API structure.
uint32_t state
contains the last few bytes in MSB order