Skip to content

Commit

Permalink
fix(Android Compression): Pass integer value to FFMPEG for trimming (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gvillenave authored and Shahen Hovhannisyan committed Oct 23, 2017
1 parent bc344b5 commit c99ddd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public static void compress(String source, ReadableMap options, final Promise pr
cmd.add("libx264");
if (width != null && height != null) {
cmd.add("-vf");
cmd.add("scale=" + Double.toString(width) + ":" + Double.toString(height));
cmd.add("scale=" + width.intValue() + ":" + height.intValue());
}

cmd.add("-preset");
Expand Down

0 comments on commit c99ddd9

Please sign in to comment.