1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 05:13:30 +03:00

Merge pull request #125 from wader/mp4-pnot-jpeg2000

mp4: Add video preview (pnot) and JPEG 2000 (jP) signatures
This commit is contained in:
Mattias Wadman 2022-02-05 17:25:23 +01:00 committed by GitHub
commit 09afd2ab24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,12 @@ func mp4Decode(d *decode.D, in interface{}) interface{} {
}
firstType := d.UTF8(4)
switch firstType {
case "styp", "ftyp", "free", "moov":
case "styp", // mp4 segment
"ftyp", // mp4 file
"free", // seems to happen
"moov", // seems to happen
"pnot", // video preview file
"jP ": // JPEG 2000
default:
d.Errorf("no styp, ftyp, free or moov box found")
}