Go to the documentation of this file.
22 #include "config_components.h"
33 int max_frames, first_frames = 0,
frames;
34 const uint8_t *buf, *buf2, *end;
41 for(; buf < end; buf++) {
42 if(buf > p->
buf && !(buf[0] == 0x0B && buf[1] == 0x77)
43 && !(buf[0] == 0x77 && buf[1] == 0x0B) )
53 if(!memcmp(buf2,
"\x1\x10", 2)) {
58 if (buf[0] == 0x77 && buf[1] == 0x0B) {
72 if (buf[0] == 0x77 && buf[1] == 0x0B) {
84 if (bitstream_id > 10)
92 if(
codec_id != expected_codec_id)
return 0;
98 else if(max_frames>=1)
return 1;
102 #if CONFIG_AC3_DEMUXER
112 .p.extensions =
"ac3",
114 .read_probe = ac3_probe,
122 #if CONFIG_EAC3_DEMUXER
132 .p.extensions =
"eac3,ec3",
134 .read_probe = eac3_probe,
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.