1
1
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:
Ronsor 2023-08-18 09:25:10 -07:00
parent 441fcd09c8
commit 6a3fecd294

View File

@ -192,7 +192,10 @@ func decodeCAFF(d *decode.D) any {
infBytes, err := io.ReadAll(flate.NewReader(bytes.NewReader(rawBytes[0x26:]))) infBytes, err := io.ReadAll(flate.NewReader(bytes.NewReader(rawBytes[0x26:])))
if err == nil { if err == nil {
infBr := bitio.NewBitReader(infBytes, -1) 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)
}
} }
} }
} }