#include "ac3.h"
Go to the source code of this file.
Enumerations | |
enum | AC3ParseError { AC3_PARSE_ERROR_SYNC = -1, AC3_PARSE_ERROR_BSID = -2, AC3_PARSE_ERROR_SAMPLE_RATE = -3, AC3_PARSE_ERROR_FRAME_SIZE = -4 } |
Functions | |
int | ff_ac3_parse_header (const uint8_t buf[7], AC3HeaderInfo *hdr) |
Parses AC-3 frame header. |
enum AC3ParseError |
AC3_PARSE_ERROR_SYNC | |
AC3_PARSE_ERROR_BSID | |
AC3_PARSE_ERROR_SAMPLE_RATE | |
AC3_PARSE_ERROR_FRAME_SIZE |
Definition at line 28 of file ac3_parser.h.
int ff_ac3_parse_header | ( | const uint8_t | buf[7], | |
AC3HeaderInfo * | hdr | |||
) |
Parses AC-3 frame header.
Parses the header up to the lfeon element, which is the first 52 or 54 bits depending on the audio coding mode.
buf[in] | Array containing the first 7 bytes of the frame. | |
hdr[out] | Pointer to struct where header info is written. |
Definition at line 37 of file ac3_parser.c.
Referenced by ac3_parse_header(), ac3_probe(), and ac3_sync().