Merge pull request #232 from patyhank/patch-1
Fix an error when reading palette
This commit is contained in:
@ -147,7 +147,7 @@ func (p *PaletteContainer[T]) ReadFrom(r io.Reader) (n int64, err error) {
|
||||
if err != nil {
|
||||
return n, err
|
||||
}
|
||||
return n, p.data.Fix(int(nBits))
|
||||
return n, p.data.Fix(p.bits)
|
||||
}
|
||||
|
||||
func (p *PaletteContainer[T]) WriteTo(w io.Writer) (n int64, err error) {
|
||||
|
Reference in New Issue
Block a user