[FFmpeg-devel] [PATCH] avformat: add tri-ACE demuxer
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sat Oct 3 22:12:08 EEST 2020
Am Do., 24. Sept. 2020 um 19:35 Uhr schrieb Paul B Mahol <onemda at gmail.com>:
> +static int ace_probe(const AVProbeData *p)
> +{
> + uint32_t asc;
> +
> + if (AV_RB32(p->buf) != MKBETAG('A','A','C',' '))
> + return 0;
> + if (p->buf_size < 0x44)
> + return 0;
> + asc = AV_RB32(p->buf + 0x40);
> + if (asc < 0x44 || asc > p->buf_size - 4)
> + return 0;
> + if (AV_RB32(p->buf + asc) != MKBETAG('A','S','C',' '))
> + return 0;
> +
> + return AVPROBE_SCORE_MAX / 2 + 1;
Is there a reason why you don't return >= MAX-1 for 64bit conformance?
Carl Eugen
More information about the ffmpeg-devel
mailing list