From 5db0510870f230af5e678b4e3cd6a7a4f2c6815b Mon Sep 17 00:00:00 2001 From: Gowtham Balamurugan <68514286+a914-gowtham@users.noreply.github.com> Date: Tue, 4 May 2021 11:47:32 +0530 Subject: [PATCH] rotation check for 90 and 270 --- .../src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0ca6edc..5227cf0 100644 --- a/library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java +++ b/library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java @@ -536,7 +536,7 @@ private String[] getCompressionCmd() { int w = TrimmerUtils.clearNull(width).isEmpty() ? 0 : Integer.parseInt(width); int h = Integer.parseInt(height); int rotation=TrimmerUtils.getVideoRotation(this,uri); - if(rotation==90 || rotation==360){ + if(rotation==90 || rotation==270){ int temp=w; w=h; h=temp; @@ -713,4 +713,4 @@ void stopRepeatingTask() { seekHandler.removeCallbacks(updateSeekbar); } -} \ No newline at end of file +}