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:
commit
09afd2ab24
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user