[FFmpeg-devel] [PATCH] avformat: Add image3 demuxers with format autodetection

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jun 30 10:13:46 CEST 2014


Michael Niedermayer <michaelni <at> gmx.at> writes:

> +static int bmp_probe(AVProbeData *p)
> +{
> +    const uint8_t *b = p->buf;
> +
> +    if (AV_RB16(b) == 0x424d)

> +        if (!AV_RN32(p + 6)) {

This should be AV_RN32(b + 6).

Carl Eugen



More information about the ffmpeg-devel mailing list