diff --git a/src/main/java/com/ddf/vodsystem/services/CompressionService.java b/src/main/java/com/ddf/vodsystem/services/CompressionService.java index 378e8d0..93766c4 100644 --- a/src/main/java/com/ddf/vodsystem/services/CompressionService.java +++ b/src/main/java/com/ddf/vodsystem/services/CompressionService.java @@ -34,7 +34,7 @@ public class CompressionService { 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 h = (height != null) ? height.toString() : "-1"; filters.add("scale=" + w + ":" + h);