1
1
mirror of https://github.com/wader/fq.git synced 2024-08-17 16:00:41 +03:00

jp2c: Fail probe faster

This commit is contained in:
Mattias Wadman 2024-04-10 23:54:22 +02:00
parent a3f5e29d8f
commit 79992b341a

View File

@ -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