Typo fix
This commit is contained in:
parent
e34aca40a3
commit
56bf6a5ce2
2
avif.go
2
avif.go
|
@ -122,7 +122,7 @@ func Encode(w io.Writer, m image.Image, o *Options) error {
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
if o.Threads < 1 {
|
if o.Threads < 1 {
|
||||||
// return OptionsError("bad threads number")
|
return OptionsError("bad threads number")
|
||||||
}
|
}
|
||||||
if o.Speed < MinSpeed || o.Speed > MaxSpeed {
|
if o.Speed < MinSpeed || o.Speed > MaxSpeed {
|
||||||
return OptionsError("bad speed value")
|
return OptionsError("bad speed value")
|
||||||
|
|
Loading…
Reference in New Issue