26 #if CONFIG_MJPEG_2000_DEMUXER 30 int i, marker, marker_size;
31 int frames = 0, invalid = 0;
33 for (i = 0; i < p->
buf_size - 5; i++) {
36 if (marker_size + i < p->buf_size - 4) {
37 marker =
AV_RB8(b+4+marker_size);
46 if (invalid*4 + 1 < frames) {
47 if (invalid == 0 && frames > 2)
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)
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.