libavcodec/aac_parser.h File Reference

#include <stdint.h>
#include "aac_ac3_parser.h"
#include "bitstream.h"

Go to the source code of this file.

Data Structures

struct  AACADTSHeaderInfo


int ff_aac_parse_header (GetBitContext *gbc, AACADTSHeaderInfo *hdr)
 Parses AAC frame header.

Function Documentation

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().

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