Skip to content

Commit c99ddd9

Browse files
gvillenaveShahen Hovhannisyan
authored andcommitted
fix(Android Compression): Pass integer value to FFMPEG for trimming (#126)
1 parent bc344b5 commit c99ddd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/shahenlibrary/Trimmer/Trimmer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public static void compress(String source, ReadableMap options, final Promise pr
423423
cmd.add("libx264");
424424
if (width != null && height != null) {
425425
cmd.add("-vf");
426-
cmd.add("scale=" + Double.toString(width) + ":" + Double.toString(height));
426+
cmd.add("scale=" + width.intValue() + ":" + height.intValue());
427427
}
428428

429429
cmd.add("-preset");

0 commit comments

Comments
 (0)