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, pes=0;
41 code = (code<<8) + p->
buf[i];
42 if ((code & 0xffffff00) == 0x100) {
49 if ((code & 0x1f0) ==
VIDEO_ID) pes++;
50 else if((code & 0x1e0) ==
AUDIO_ID) pes++;
53 if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes)
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
#define PICTURE_START_CODE
static int mpegvideo_probe(AVProbeData *p)
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.
This structure contains the data a format has to probe a file.