libavcodec/aac_parser.c File Reference

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

Go to the source code of this file.


#define AAC_HEADER_SIZE   7


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

Define Documentation

#define AAC_HEADER_SIZE   7

Definition at line 29 of file aac_parser.c.

Referenced by aac_parse_init(), aac_sync(), and ff_aac_parse_header().

Function Documentation

static av_cold int aac_parse_init ( AVCodecParserContext s1  )  [static]

Definition at line 102 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 77 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 31 of file aac_parser.c.

Referenced by aac_sync(), and parse_adts_frame_header().

Variable Documentation

Initial value:

Definition at line 111 of file aac_parser.c.

Generated on Fri Oct 26 02:35:42 2012 for FFmpeg by  doxygen 1.5.8