libavcodec/aac_parser.c File Reference

#include "parser.h"
#include "aac_ac3_parser.h"
#include "aac_parser.h"
#include "get_bits.h"
#include "mpeg4audio.h"

Go to the source code of this file.


int ff_aac_parse_header (GetBitContext *gbc, AACADTSHeaderInfo *hdr)
 Parses AAC frame header.
static int aac_sync (uint64_t state, AACAC3ParseContext *hdr_info, int *need_next_header, int *new_frame_start)
static av_cold int aac_parse_init (AVCodecParserContext *s1)


AVCodecParser aac_parser

Function Documentation

static av_cold int aac_parse_init ( AVCodecParserContext s1  )  [static]

Definition at line 97 of file aac_parser.c.

static int aac_sync ( uint64_t  state,
AACAC3ParseContext hdr_info,
int *  need_next_header,
int *  new_frame_start 
) [static]

Definition at line 72 of file aac_parser.c.

Referenced by aac_parse_init().

int ff_aac_parse_header ( GetBitContext gbc,
AACADTSHeaderInfo hdr 

Parses AAC frame header.

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

gbc[in] BitContext containing the first 54 bits of the frame.
hdr[out] Pointer to struct where header info is written.
Returns 0 on success, -1 if there is a sync word mismatch, -2 if the version element is invalid, -3 if the sample rate element is invalid, or -4 if the bit rate element is invalid.

Definition at line 29 of file aac_parser.c.

Referenced by aac_adtstoasc_filter(), aac_sync(), parse_adts_frame_header(), and spdif_header_aac().

Variable Documentation

Initial value:

Definition at line 106 of file aac_parser.c.

Generated on Fri Oct 26 02:36:50 2012 for FFmpeg by  doxygen 1.5.8