[FFmpeg-devel] [PATCH] avformat: add mca demuxer
Carl Eugen Hoyos
ceffmpeg at gmail.com
Wed Sep 2 02:07:07 EEST 2020
Am Mi., 2. Sept. 2020 um 00:58 Uhr schrieb <liushuyu at aosc.io>:
> +static int probe(const AVProbeData *p)
> +{
> + if (AV_RL32(p->buf) == MKTAG('M', 'A', 'D', 'P') &&
> + (AV_RL16(p->buf + 4) > 0x00 || AV_RL16(p->buf + 4) <= 0xff))
> + return AVPROBE_SCORE_MAX / 3 * 2;
> + return 0;
At least add the version check from read_header(),
you could also add the "sanity checks" you do
there to this function.
Carl Eugen
More information about the ffmpeg-devel
mailing list