flash 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #------------------------------------------------------------------------------
  2. # $File: flash,v 1.12 2017/02/07 23:25:26 christos Exp $
  3. # flash: file(1) magic for Macromedia Flash file format
  4. #
  5. # See
  6. #
  7. # http://www.macromedia.com/software/flash/open/
  8. # http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/\
  9. # en/devnet/swf/pdf/swf-file-format-spec.pdf page 27
  10. #
  11. 0 name swf-details
  12. >0 string F
  13. >>8 byte&0xfd 0x08 Macromedia Flash data
  14. !:mime application/x-shockwave-flash
  15. >>>3 byte x \b, version %d
  16. >>8 byte&0xfe 0x10 Macromedia Flash data
  17. !:mime application/x-shockwave-flash
  18. >>>3 byte x \b, version %d
  19. >>8 byte 0x18 Macromedia Flash data
  20. !:mime application/x-shockwave-flash
  21. >>>3 byte x \b, version %d
  22. >>8 beshort&ff87 0x2000 Macromedia Flash data
  23. !:mime application/x-shockwave-flash
  24. >>>3 byte x \b, version %d
  25. >>8 beshort&ffe0 0x3000 Macromedia Flash data
  26. !:mime application/x-shockwave-flash
  27. >>>3 byte x \b, version %d
  28. >>8 byte&0x7 0
  29. >>>8 ubyte >0x2f
  30. >>>>9 ubyte <0x20 Macromedia Flash data
  31. !:mime application/x-shockwave-flash
  32. >>>>>3 byte x \b, version %d
  33. >0 string C
  34. >>8 byte 0x78 Macromedia Flash data (compressed)
  35. !:mime application/x-shockwave-flash
  36. >>>3 byte x \b, version %d
  37. >0 string Z
  38. >>8 byte 0x5d Macromedia Flash data (lzma compressed)
  39. !:mime application/x-shockwave-flash
  40. >>>3 byte x \b, version %d
  41. 1 string WS
  42. >4 ulelong >14
  43. >>3 ubyte !0
  44. >>>0 use swf-details
  45. # From: Cal Peake <cp@absolutedigital.net>
  46. 0 string FLV\x01 Macromedia Flash Video
  47. !:mime video/x-flv
  48. #
  49. # Yosu Gomez
  50. 0 string AGD2\xbe\xb8\xbb\xcd\x00 Macromedia Freehand 7 Document
  51. 0 string AGD3\xbe\xb8\xbb\xcc\x00 Macromedia Freehand 8 Document
  52. # From Dave Wilson
  53. 0 string AGD4\xbe\xb8\xbb\xcb\x00 Macromedia Freehand 9 Document