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 & 0xfffffe00)
45 else if (temp_buffer >= 0x100 && temp_buffer < 0x120)
47 else if (temp_buffer >= 0x120 && temp_buffer < 0x130)
49 else if (!(0x1AF < temp_buffer && temp_buffer < 0x1B7) &&
50 !(0x1B9 < temp_buffer && temp_buffer < 0x1C4))
54 if (VOP >= VISO && VOP >= VOL && VO >= VOL && VOL > 0 && res == 0)
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)
static int mpeg4video_probe(AVProbeData *probe_packet)
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.
#define VISUAL_OBJECT_START_CODE
This structure contains the data a format has to probe a file.