Fix if PRE_FFMPEG_ARG was missing
This commit is contained in:
parent
48de109961
commit
180bfe72c2
|
@ -77,9 +77,10 @@ public class Remux extends AbstractPostProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String[] prepareCommandline(File inputFile, File remuxedFile) throws IOException {
|
private String[] prepareCommandline(File inputFile, File remuxedFile) throws IOException {
|
||||||
String[] argsPreFfmpeg = getConfig().get(PRE_FFMPEG_ARGS).isEmpty()
|
String preArgs = getConfig().getOrDefault(PRE_FFMPEG_ARGS, "");
|
||||||
? new String[] {} // If empty, create an empty array
|
String[] argsPreFfmpeg = preArgs.isEmpty()
|
||||||
: getConfig().get(PRE_FFMPEG_ARGS).split(" ");
|
? new String[] {} // If empty, create an empty array
|
||||||
|
: getConfig().get(PRE_FFMPEG_ARGS).split(" ");
|
||||||
String[] args = getConfig().get(FFMPEG_ARGS).split(" ");
|
String[] args = getConfig().get(FFMPEG_ARGS).split(" ");
|
||||||
String[] argsPlusFile = new String[argsPreFfmpeg.length + args.length + 3];
|
String[] argsPlusFile = new String[argsPreFfmpeg.length + args.length + 3];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
Loading…
Reference in New Issue