[FFmpeg-devel] [PATCH] add Weston Capture demuxer, parser and decoder

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Sep 20 14:44:47 EEST 2017


2017-09-10 21:03 GMT+02:00 Paul B Mahol <onemda at gmail.com>:

> +static int wcap_probe(AVProbeData *pd)
> +{
> +    if (AV_RB32(pd->buf) == MKTAG('W','C','A','P'))
> +        return AVPROBE_SCORE_MAX;
> +    else
> +        return 0;
> +}

MAX / 2 is what we normally use for 32bit compliance iirc.
(Why is it less for musx?)
And the else is unneeded.

Thank you, Carl Eugen


More information about the ffmpeg-devel mailing list