From 07c8dcdf1a14b6d7ecdbff0fad8a873a2323396e Mon Sep 17 00:00:00 2001 From: Mohan Date: Tue, 4 Jul 2023 18:50:57 +0530 Subject: [PATCH] cleared a bug in ActivityTrimmer.java in line 586, Whenever we try to compress the video if the video is rotated then calculated w h is swapped but w greater than 800 swapped height is not being used instead actual retrived height value is used, resulting video aspect ration becomes 1:1,so i have corrected --- .../src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",