mirror of
https://github.com/wader/fq.git
synced 2024-10-26 20:06:29 +03:00
jp2c: Fail probe faster
This commit is contained in:
parent
a3f5e29d8f
commit
79992b341a
@ -71,6 +71,10 @@ var jp2Markers = scalar.UintMap{
|
||||
}
|
||||
|
||||
func jp2cDecode(d *decode.D) any {
|
||||
if d.PeekUintBits(16) != JP2_SOC {
|
||||
d.Fatalf("no SOC marker")
|
||||
}
|
||||
|
||||
seenSOC := false
|
||||
seenSIZ := false
|
||||
seenEOC := false
|
||||
|
Loading…
Reference in New Issue
Block a user