PATCH width and height functions working incorrectly

This commit is contained in:
2025-05-11 22:30:00 +02:00
parent 7e75e16749
commit 8545526218

View File

@@ -34,7 +34,7 @@ public class CompressionService {
filters.add("fps=" + fps); filters.add("fps=" + fps);
} }
if ((width != null && height == null) || (height != null && width == null)) { if (!(width == null && height == null)) {
String w = (width != null) ? width.toString() : "-1"; String w = (width != null) ? width.toString() : "-1";
String h = (height != null) ? height.toString() : "-1"; String h = (height != null) ? height.toString() : "-1";
filters.add("scale=" + w + ":" + h); filters.add("scale=" + w + ":" + h);