Skip to content

Commit d9b2714

Browse files
Nits
1 parent d79b970 commit d9b2714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/github/stickerifier/stickerify/media/MediaHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ private static File convertWithFfmpeg(File file) throws MediaException, Interrup
405405
"-c:v", "libvpx-" + VP9_CODEC,
406406
"-b:v", "650K",
407407
"-pix_fmt", "yuv420p",
408-
"-t", "" + MAX_VIDEO_DURATION_MILLIS / 1000,
408+
"-t", String.valueOf(MAX_VIDEO_DURATION_MILLIS / 1000),
409409
"-an",
410410
"-passlogfile", logPrefix
411411
};
@@ -419,7 +419,7 @@ private static File convertWithFfmpeg(File file) throws MediaException, Interrup
419419
} catch (FileOperationException ex) {
420420
e.addSuppressed(ex);
421421
}
422-
throw new MediaException(e);
422+
throw new MediaException("FFmpeg two-pass conversion failed", e);
423423
} finally {
424424
try {
425425
deleteFile(new File(logPrefix + "-0.log"));

0 commit comments

Comments
 (0)