30 uint8_t *buf, *buf2, *end;
39 for(; buf < end; buf++) {
42 for(frames = 0; buf2 < end; frames++) {
53 max_frames =
FFMAX(max_frames, frames);
55 first_frames = frames;
57 if(codec_id != expected_codec_id)
return 0;
63 else if(max_frames>=1)
return 1;
67 #if CONFIG_AC3_DEMUXER
76 .read_probe = ac3_probe,
85 #if CONFIG_EAC3_DEMUXER
94 .read_probe = eac3_probe,
uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t length)
Calculate the CRC of a block.
const AVCRC * av_crc_get_table(AVCRCId crc_id)
Get an initialized standard CRC table.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int avpriv_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr)
Parse AC-3 frame header.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
This structure contains the data a format has to probe a file.
CodecID
Identify the syntax and semantics of the bitstream.