FFmpeg  4.0
Macros | Functions
ac3_parser.c File Reference
#include "config.h"
#include "libavutil/channel_layout.h"
#include "parser.h"
#include "ac3_parser.h"
#include "ac3_parser_internal.h"
#include "aac_ac3_parser.h"
#include "get_bits.h"

Go to the source code of this file.

Macros

#define AC3_HEADER_SIZE   7
 

Functions

int avpriv_ac3_parse_header (AC3HeaderInfo **phdr, const uint8_t *buf, size_t size)
 
int av_ac3_parse_header (const uint8_t *buf, size_t size, uint8_t *bitstream_id, uint16_t *frame_size)
 Extract the bitstream ID and the frame size from AC-3 data. More...
 

Macro Definition Documentation

◆ AC3_HEADER_SIZE

#define AC3_HEADER_SIZE   7

Definition at line 33 of file ac3_parser.c.

Function Documentation

◆ avpriv_ac3_parse_header()

int avpriv_ac3_parse_header ( AC3HeaderInfo **  phdr,
const uint8_t buf,
size_t  size 
)

Definition at line 245 of file ac3_parser.c.

◆ av_ac3_parse_header()

int av_ac3_parse_header ( const uint8_t buf,
size_t  size,
uint8_t bitstream_id,
uint16_t *  frame_size 
)

Extract the bitstream ID and the frame size from AC-3 data.

Definition at line 251 of file ac3_parser.c.

Referenced by ac3_eac3_probe().