39 state = (state << 16) | bytestream_get_be16(&bufp);
47 if ((bytestream_get_be16(&bufp) & 0xFFF0) == 0x07F0)
52 if ((bytestream_get_be16(&bufp) & 0xF0FF) == 0xF007)
55 sum = markers[0] + markers[1] + markers[2];
56 max = markers[1] > markers[0];
57 max = markers[2] > markers[max] ? 2 : max;
58 if (markers[max] > 3 && p->
buf_size / markers[max] < 32*1024 &&
59 markers[max] * 4 > sum * 3)
static int dts_probe(AVProbeData *p)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
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.
AVInputFormat ff_dts_demuxer
This structure contains the data a format has to probe a file.