Fix compression level 0

This commit is contained in:
Jesse Boyd 2017-05-21 23:18:41 +10:00
parent b87008149e
commit efda408b76
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -357,6 +357,9 @@ public class MainUtil {
} else {
legacy = true;
}
if (mode == 0) {
return new FaweInputStream(is);
}
int amountAbs = Math.abs(mode);
if (amountAbs > 6) {
if (mode > 0) {