From d2032b00c9b8cb2be022e1c68ef6aab2bf9647f7 Mon Sep 17 00:00:00 2001 From: Hans Viken Duedal Date: Thu, 4 Apr 2019 10:39:37 +0200 Subject: [PATCH] Fix typo in Config.SetLossless() --- webp/encode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webp/encode.go b/webp/encode.go index f1603ea..227cc21 100644 --- a/webp/encode.go +++ b/webp/encode.go @@ -140,7 +140,7 @@ func ConfigLosslessPreset(level int) (*Config, error) { // SetLossless sets lossless parameter that specifies whether to enable lossless // encoding. func (c *Config) SetLossless(v bool) { - c.c.autofilter = boolToValue(v) + c.c.lossless = boolToValue(v) } // Lossless returns lossless parameter flag whether to enable lossless encoding.