Skip to content

Commit

Permalink
cleared a bug in ActivityTrimmer.java in line 586,
Browse files Browse the repository at this point in the history
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
  • Loading branch information
immohanravi committed Jul 4, 2023
1 parent 93e323a commit 07c8dcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 07c8dcd

Please sign in to comment.