31 const uint8_t *end = p->buf + p->buf_size;
35 for(
i=0;
i<p->buf_size;
i++){
36 if (p->buf[
i] == 0x0f) {
37 const uint8_t *ptr = p->buf +
i;
38 uint8_t histogram[6] = {0};
40 for(j=0; 6 < end - ptr; j++) {
48 }
else if (
type >= 0x10 &&
type <= 0x14) {
49 histogram[
type - 0x10] ++;
52 if (6 +
len > end - ptr)
56 for (k=0; k < 4; k++) {
59 if (
min && j > max_score)
#define i(width, name, range_min, range_max)
static int dvbsub_probe(const AVProbeData *p)
@ AV_CODEC_ID_DVB_SUBTITLE
#define FF_DEF_RAWSUB_DEMUXER(shortname, longname, probe, ext, id, flag)
This structure contains the data a format has to probe a file.