[FFmpeg-devel] [PATCH] Add FITS Demuxer

Paras Chadha paraschadha18 at gmail.com
Fri Jul 28 12:53:41 EEST 2017


On Fri, Jul 28, 2017 at 1:44 PM, Clément Bœsch <u at pkh.me> wrote:

> 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)?
>

ok, will change to this

>
> all FITS files start like this?...
>

yes, it is the standard signature of FITS files. See
https://en.wikipedia.org/wiki/List_of_file_signatures

>
> [...]
>
> --
> Clément B.
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list