libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

plugin.c (297B)


      1 if ((data[0] != 0xFF) || (data[1] != 0xD8))
      2   return prev;                  /* not a JPEG */
      3 addKeyword (&prev, strdup ("image/jpeg"), EXTRACTOR_MIMETYPE);
      4 /* ... more parsing code here ... */
      5 return prev;
      6 
      7 Caption:jpegextractor.c adds the Mime -
      8   Type to the list after parsing the file header.