Fix crash when video file name contains whitespace (fixes #250)

This commit is contained in:
Jonas Herzig
2020-07-13 16:20:28 +02:00
parent f1885ece41
commit e090e8f4f3

View File

@@ -58,7 +58,7 @@ public class VideoWriter implements FrameConsumer<RGBFrame> {
LOGGER.info("Starting {} with args: {}", executable, commandArgs);
String[] cmdline;
try {
cmdline = new CommandLine(executable).addArguments(commandArgs).toStrings();
cmdline = new CommandLine(executable).addArguments(commandArgs, false).toStrings();
} catch (IllegalArgumentException e) {
LOGGER.error("Failed to parse ffmpeg command line:", e);
throw new FFmpegStartupException(settings, e.getLocalizedMessage());