29 int max_frames, first_frames = 0, frames;
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;
64 unsigned int code = -1;
66 #define VIDEO_ID 0x000001e0
67 #define AUDIO_ID 0x000001c0
71 code = (code << 8) + p->
buf[i];
72 if ((code & 0xffffff00) == 0x100) {
73 if ((code & 0x1f0) ==
VIDEO_ID) pes++;
74 else if((code & 0x1e0) ==
AUDIO_ID) pes++;
79 max_frames = (max_frames + pes - 1) / pes;
83 else if (max_frames >= 1)
return 1;
87 #if CONFIG_AC3_DEMUXER
96 .read_probe = ac3_probe,
105 #if CONFIG_EAC3_DEMUXER
114 .read_probe = eac3_probe,
118 .extensions =
"eac3",