浏览代码

fix: ffmpeg works without ffmpeg_args

issue #212
C4illin 6 月之前
父节点
当前提交
3b7ea88b73
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/converters/ffmpeg.ts

+ 1 - 1
src/converters/ffmpeg.ts

@@ -700,7 +700,7 @@ export async function convert(
     message = "Done: resized to 256x256";
     message = "Done: resized to 256x256";
   }
   }
 
 
-  const command = `ffmpeg ${process.env.FFMPEG_ARGS} -i "${filePath}" ${extra} "${targetPath}"`;
+  const command = `ffmpeg ${process.env.FFMPEG_ARGS || ""} -i "${filePath}" ${extra} "${targetPath}"`;
 
 
   return new Promise((resolve, reject) => {
   return new Promise((resolve, reject) => {
     exec(command, (error, stdout, stderr) => {
     exec(command, (error, stdout, stderr) => {