[FFmpeg-devel] [FFmpeg-cvslog] avformat: add IPU demuxer
Carl Eugen Hoyos
ceffmpeg at gmail.com
Thu Sep 24 19:23:50 EEST 2020
Am Do., 24. Sept. 2020 um 13:44 Uhr schrieb Paul B Mahol <git at videolan.org>:
> +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
More information about the ffmpeg-devel
mailing list