[FFmpeg-devel] [PATCH] Add FITS Demuxer

Clément Bœsch u at pkh.me
Fri Jul 28 11:14:54 EEST 2017


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170728/cc9ed689/attachment.sig>


More information about the ffmpeg-devel mailing list