Jelajahi Sumber

AvifSpeed value checker (#760)

As I understand valid values for `AvifSpeed` is 0-8, including 0 and 8. But the checker does not allow 0.
So here is fix
Aleksandr 3 tahun lalu
induk
melakukan
36c73e3ea8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      config/config.go

+ 1 - 1
config/config.go

@@ -481,7 +481,7 @@ func Configure() error {
 		return fmt.Errorf("Png quantization colors can't be greater than 256, now - %d\n", PngQuantizationColors)
 	}
 
-	if AvifSpeed <= 0 {
+	if AvifSpeed < 0 {
 		return fmt.Errorf("Avif speed should be greater than 0, now - %d\n", AvifSpeed)
 	} else if AvifSpeed > 8 {
 		return fmt.Errorf("Avif speed can't be greater than 8, now - %d\n", AvifSpeed)