On Fri, Jul 28, 2017 at 12:32:59AM +0530, Paras Chadha wrote:
[...]
> +static int fits_probe(AVProbeData *p)
> +{
> +    const uint8_t *b = p->buf;
> +
> +    if (AV_RB64(b) == 0x53494d504c452020 &&
> +        AV_RB64(b + 8) == 0x3D20202020202020 &&
> +        AV_RB64(b + 16) == 0x2020202020202020 &&
> +        AV_RB48(b + 24) == 0x202020202054)
> +        return AVPROBE_SCORE_MAX - 1;


memcmp(b, "SIMPLE  =                    T", 30)?

all FITS files start like this?...

[...]

-- 
Clément B.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to