FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ac3_parser.h File Reference
#include "ac3.h"
#include "get_bits.h"

Go to the source code of this file.

Functions

int avpriv_ac3_parse_header2 (GetBitContext *gbc, AC3HeaderInfo **hdr)
 Parse AC-3 frame header. More...
 
int avpriv_ac3_parse_header (GetBitContext *gbc, AC3HeaderInfo *hdr)
 

Function Documentation

int avpriv_ac3_parse_header2 ( GetBitContext gbc,
AC3HeaderInfo **  hdr 
)

Parse AC-3 frame header.

Parse the header up to the lfeon element, which is the first 52 or 54 bits depending on the audio coding mode.

Parameters
[in]gbcBitContext containing the first 54 bits of the frame.
[out]hdrPointer to Pointer to struct where header info is written. will be allocated if NULL
Returns
Returns 0 on success, -1 if there is a sync word mismatch, -2 if the bsid (version) element is invalid, -3 if the fscod (sample rate) element is invalid, or -4 if the frmsizecod (bit rate) element is invalid.

Definition at line 50 of file ac3_parser.c.

Referenced by ac3_eac3_probe(), ac3_sync(), avpriv_ac3_parse_header(), and parse_frame_header().

int avpriv_ac3_parse_header ( GetBitContext gbc,
AC3HeaderInfo hdr 
)

Definition at line 154 of file ac3_parser.c.