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;
79 if(codec_id != expected_codec_id)
return 0;
85 else if(max_frames>=1)
return 1;
89 #if CONFIG_AC3_DEMUXER
98 .read_probe = ac3_probe,
107 #if CONFIG_EAC3_DEMUXER
116 .read_probe = eac3_probe,
120 .extensions =
"eac3",