FFmpeg
Functions
adts_header.c File Reference
#include "adts_header.h"
#include "adts_parser.h"
#include "get_bits.h"
#include "mpeg4audio.h"
#include "libavutil/avassert.h"

Go to the source code of this file.

Functions

int ff_adts_header_parse (GetBitContext *gbc, AACADTSHeaderInfo *hdr)
 Parse the ADTS frame header to the end of the variable header, which is the first 54 bits. More...
 
int ff_adts_header_parse_buf (const uint8_t buf[AV_AAC_ADTS_HEADER_SIZE+AV_INPUT_BUFFER_PADDING_SIZE], AACADTSHeaderInfo *hdr)
 Wrapper around ff_adts_header_parse() for users that don't already have a suitable GetBitContext. More...
 

Function Documentation

◆ ff_adts_header_parse()

int ff_adts_header_parse ( struct GetBitContext gbc,
AACADTSHeaderInfo hdr 
)

Parse the ADTS frame header to the end of the variable header, which is the first 54 bits.

Parameters
[in]gbcBitContext containing the first 54 bits of the frame.
[out]hdrPointer to struct where header info is written.
Returns
the size in bytes of the header parsed on success and AAC_PARSE_ERROR_* values otherwise.

Definition at line 30 of file adts_header.c.

Referenced by ff_aac_ac3_parse(), ff_adts_header_parse_buf(), ftr_decode_frame(), and parse_adts_frame_header().

◆ ff_adts_header_parse_buf()

int ff_adts_header_parse_buf ( const uint8_t  buf[AV_AAC_ADTS_HEADER_SIZE+AV_INPUT_BUFFER_PADDING_SIZE],
AACADTSHeaderInfo hdr 
)

Wrapper around ff_adts_header_parse() for users that don't already have a suitable GetBitContext.

Definition at line 76 of file adts_header.c.

Referenced by aac_adtstoasc_filter(), aac_sync(), av_adts_header_parse(), avpriv_adts_header_parse(), and ftr_parse().