• Jehan's avatar
    Issue #2209: more accurate magic for HEIF files. · 4ad3993e
    Jehan authored
    Just looking for "ftyp" would also match other ISOBMFF files (.mov or
    .mp4 files for instance). These are the possible 4-byte "brand" code
    which can follow "ftyp", as listed by Dirk Farin from libheif.
    
    I add the "mif1" brand, as I encountered some files using this magic
    (even though this should normally not be valid apparently, yet the file
    loaded fine in GIMP).
    
    This is not perfect as the standard allows potentially very big box
    headers, in which case 8 bytes (the "largesize" slot) may be inserted
    between "ftyp" and the brand, as I understand it. But this is actually
    unlikely enough to probably never happen (the compatible brands list
    would have to be huuuge, as it looks like this is the only extendable
    part in a ftyp box). So let's assume this just never happens.
    
    See also: https://github.com/strukturag/libheif/issues/83
    4ad3993e
Name
Last commit
Last update
..
common Loading commit data...
file-bmp Loading commit data...
file-exr Loading commit data...
file-faxg3 Loading commit data...
file-fits Loading commit data...
file-fli Loading commit data...
file-ico Loading commit data...
file-jpeg Loading commit data...
file-psd Loading commit data...
file-raw Loading commit data...
file-sgi Loading commit data...
file-tiff Loading commit data...
file-webp Loading commit data...
flame Loading commit data...
fractal-explorer Loading commit data...
gfig Loading commit data...
gimpressionist Loading commit data...
gradient-flare Loading commit data...
help Loading commit data...
help-browser Loading commit data...
ifs-compose Loading commit data...
imagemap Loading commit data...
lighting Loading commit data...
map-object Loading commit data...
metadata Loading commit data...
pagecurl Loading commit data...
print Loading commit data...
pygimp Loading commit data...
screenshot Loading commit data...
script-fu Loading commit data...
selection-to-path Loading commit data...
twain Loading commit data...
ui Loading commit data...
.gitignore Loading commit data...
Makefile.am Loading commit data...