mirror of
https://github.com/wader/fq.git
synced 2024-11-23 18:56:52 +03:00
caff: include uncompressed bits for proper decompressed entries that can't be decoded as a format
This commit is contained in:
parent
441fcd09c8
commit
6a3fecd294
@ -192,7 +192,10 @@ func decodeCAFF(d *decode.D) any {
|
||||
infBytes, err := io.ReadAll(flate.NewReader(bytes.NewReader(rawBytes[0x26:])))
|
||||
if err == nil {
|
||||
infBr := bitio.NewBitReader(infBytes, -1)
|
||||
d.TryFieldFormatBitBuf("uncompressed", infBr, &probeGroup, format.Probe_In{})
|
||||
value, _, err := d.TryFieldFormatBitBuf("uncompressed", infBr, &probeGroup, format.Probe_In{})
|
||||
if value == nil && err != nil {
|
||||
d.FieldRootBitBuf("uncompressed", infBr)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user