29 int max_frames, first_frames = 0, frames;
39 for(; buf <
end; buf++) {
40 if(buf > p->
buf && !(buf[0] == 0x0B && buf[1] == 0x77)
41 && !(buf[0] == 0x77 && buf[1] == 0x0B) )
45 for(frames = 0; buf2 <
end; frames++) {
48 if(!memcmp(buf2,
"\x1\x10\0\0\0\0\0\0", 8))
50 if (buf[0] == 0x77 && buf[1] == 0x0B) {
62 if (buf[0] == 0x77 && buf[1] == 0x0B) {
75 max_frames =
FFMAX(max_frames, frames);
77 first_frames = frames;
80 if(codec_id != expected_codec_id)
return 0;
86 else if(max_frames>=1)
return 1;
90 #if CONFIG_AC3_DEMUXER
99 .read_probe = ac3_probe,
108 #if CONFIG_EAC3_DEMUXER
117 .read_probe = eac3_probe,
121 .extensions =
"eac3",