Go to the documentation of this file.
22 #include "config_components.h"
32 int max_frames, first_frames = 0,
frames;
33 const uint8_t *buf, *buf2, *end;
40 for(; buf < end; buf++) {
41 if(buf > p->
buf && !(buf[0] == 0x0B && buf[1] == 0x77)
42 && !(buf[0] == 0x77 && buf[1] == 0x0B) )
52 if(!memcmp(buf2,
"\x1\x10", 2)) {
57 if (buf[0] == 0x77 && buf[1] == 0x0B) {
71 if (buf[0] == 0x77 && buf[1] == 0x0B) {
83 if (bitstream_id > 10)
91 if(
codec_id != expected_codec_id)
return 0;
97 else if(max_frames>=1)
return 1;
101 #if CONFIG_AC3_DEMUXER
110 .read_probe = ac3_probe,
121 #if CONFIG_EAC3_DEMUXER
130 .read_probe = eac3_probe,
134 .extensions =
"eac3,ec3",
int buf_size
Size of buf except extra allocated bytes.
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.
if it could not because there are no more frames
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
This structure contains the data a format has to probe a file.
AVCodecID
Identify the syntax and semantics of the bitstream.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
const AVCRC * av_crc_get_table(AVCRCId crc_id)
Get an initialized standard CRC table.
#define i(width, name, range_min, range_max)
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block.