Skip to content

Commit

Permalink
caff: include uncompressed bits for proper decompressed entries that …
Browse files Browse the repository at this point in the history
…can't be decoded as a format
  • Loading branch information
Ronsor committed Aug 18, 2023
1 parent 441fcd0 commit 6a3fecd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion format/caff/caff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Expand Down

0 comments on commit 6a3fecd

Please sign in to comment.