diff --git a/library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java b/library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java index b69cf8c..30e7cbd 100644 --- a/library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java +++ b/library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java @@ -583,7 +583,7 @@ private String[] getCompressionCmd() { //Dividing high resolution video by 2(ex: taken with camera) else if (w >= 800) { w = w / 2; - h = Integer.parseInt(height) / 2; + h = h / 2; return new String[]{"-ss", TrimmerUtils.formatCSeconds(lastMinValue), "-i", String.valueOf(filePath), "-s", w + "x" + h, "-r", "30",