[FFmpeg-devel] [PATCH v3 2/2] avformat: add demuxer for LEGO Racers' ALP format
Carl Eugen Hoyos
ceffmpeg at gmail.com
Mon Mar 9 02:57:18 EET 2020
Am So., 8. März 2020 um 13:09 Uhr schrieb Zane van Iperen
<zane at zanevaniperen.com>:
> +static int alp_probe(const AVProbeData *p)
> +{
> + uint32_t i;
> +
> + if (AV_RL32(p->buf) != ALP_TAG)
> + return 0;
> +
> + /* Only allowed header sizes are 8 and 12. */
> + i = AV_RL32(p->buf + 4);
> + if (i != 8 && i != 12)
> + return 0;
> +
> + if (strncmp("ADPCM", p->buf + 8, 6) != 0)
> + return 0;
> +
> + return AVPROBE_SCORE_EXTENSION + 1;
Should be MAX or MAX-1
Carl Eugen
More information about the ffmpeg-devel
mailing list