Am Do., 24. Sept. 2020 um 13:44 Uhr schrieb Paul B Mahol <[email protected]>:
> +static int ipu_read_probe(const AVProbeData *p)
> +{
> + if (AV_RB32(p->buf) != MKBETAG('i', 'p', 'u', 'm'))
> + return 0;
> +
> + if (AV_RL32(p->buf + 4) == 0)
> + return 0;
> +
> + if (AV_RL16(p->buf + 8) == 0)
> + return 0;
> +
> + if (AV_RL16(p->buf + 10) == 0)
> + return 0;
> +
> + if (AV_RL32(p->buf + 12) == 0)
> + return 0;
> +
> + return AVPROBE_SCORE_MAX;
I don't think above check is significantly better than
just checking 32bit, so I believe the score is too high.
Carl Eugen
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".