25 #define VISUAL_OBJECT_START_CODE 0x000001b5
26 #define VOP_START_CODE 0x000001b6
30 uint32_t temp_buffer= -1;
31 int VO=0, VOL=0, VOP = 0, VISO = 0,
res=0;
34 for(i=0; i<probe_packet->
buf_size; i++){
35 temp_buffer = (temp_buffer<<8) + probe_packet->
buf[i];
36 if ((temp_buffer & 0xffffff00) != 0x100)
41 else if (temp_buffer < 0x120) VO++;
42 else if (temp_buffer < 0x130) VOL++;
43 else if ( !(0x1AF < temp_buffer && temp_buffer < 0x1B7)
44 && !(0x1B9 < temp_buffer && temp_buffer < 0x1C4))
res++;
47 if (VOP >= VISO && VOP >= VOL && VO >= VOL && VOL > 0 &&
res==0)
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)
static int mpeg4video_probe(AVProbeData *probe_packet)
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.
int buf_size
Size of buf except extra allocated bytes.
#define VISUAL_OBJECT_START_CODE
This structure contains the data a format has to probe a file.