26 #define SEQ_START_CODE 0x000001b3
27 #define GOP_START_CODE 0x000001b8
28 #define PICTURE_START_CODE 0x00000100
29 #define SLICE_START_CODE 0x00000101
30 #define PACK_START_CODE 0x000001ba
31 #define VIDEO_ID 0x000001e0
32 #define AUDIO_ID 0x000001c0
37 int pic=0, seq=0, slice=0, pspack=0, vpes=0, apes=0,
res=0, sicle=0;
42 code = (code<<8) + p->
buf[i];
43 if ((code & 0xffffff00) == 0x100) {
53 if (code >= last) slice++;
60 if ((code & 0x1f0) ==
VIDEO_ID) vpes++;
61 else if((code & 0x1e0) ==
AUDIO_ID) apes++;
65 if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !apes && !
res && slice > sicle) {
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
#define PICTURE_START_CODE
if((e=av_dict_get(options,"", NULL, AV_DICT_IGNORE_SUFFIX)))
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int mpegvideo_probe(AVProbeData *p)
int buf_size
Size of buf except extra allocated bytes.
This structure contains the data a format has to probe a file.