Merge pull request #22 from e-conomic/master

Fix typo in Config.SetLossless()
This commit is contained in:
Michii Shunsuke 2019-07-03 15:09:27 +09:00 committed by GitHub
commit 68562c9c99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,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.