Defensive: handle null/undefined ffmpeg args

This commit is contained in:
TC
2021-01-08 22:26:44 +01:00
parent 5ac356bf91
commit b04e2ea130

View File

@ -87,7 +87,7 @@ const toMP3 = async (
await ffmpeg.run(
"-i",
safeVideoName,
...options.ffmpegArgs,
...(options.ffmpegArgs || []),
safeVideoName + ".mp3"
);