Update the position of opts to fix bugs

This commit is contained in:
Jerome Wu
2019-12-20 13:51:42 +08:00
parent 83c5107d92
commit 568061c689
2 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ const run = async ({
},
},
}, res) => {
const args = [...defaultArgs, ..._args.trim().split(' ')];
const args = [...defaultArgs, ..._args.trim().split(' ')].filter((s) => s.length !== 0);
ffmpeg(args.length, strList2ptr(Module, args));
/*