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