mirror of
https://github.com/wader/fq.git
synced 2024-08-16 23:40:43 +03:00
Merge pull request #928 from wader/jp2c-faster-probe
jp2c: Fail probe faster
This commit is contained in:
commit
d04a846f10
@ -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