Go to the documentation of this file.
30 int max_frames, first_frames = 0,
frames;
31 const uint8_t *buf, *buf2, *end;
38 for(; buf < end; buf++) {
39 if(buf > p->
buf && !(buf[0] == 0x0B && buf[1] == 0x77)
40 && !(buf[0] == 0x77 && buf[1] == 0x0B) )
50 if(!memcmp(buf2,
"\x1\x10", 2)) {
55 if (buf[0] == 0x77 && buf[1] == 0x0B) {
69 if (buf[0] == 0x77 && buf[1] == 0x0B) {
81 if (bitstream_id > 10)
89 if(
codec_id != expected_codec_id)
return 0;
95 else if(max_frames>=1)
return 1;
99 #if CONFIG_AC3_DEMUXER
108 .read_probe = ac3_probe,
119 #if CONFIG_EAC3_DEMUXER
128 .read_probe = eac3_probe,
132 .extensions =
"eac3",
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.