2017-09-10 21:03 GMT+02:00 Paul B Mahol :
> +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
On Sun, 2017-09-10 at 21:03 +0200, Paul B Mahol wrote:
> +static av_cold int wcap_decode_init(AVCodecContext *avctx)
> +{
> +WCAPContext *s = avctx->priv_data;
> +uint32_t format;
> +
> +if (avctx->extradata && avctx->extradata_size >= 4) {
> +format = AV_RL32(avctx->extradata);