The swiss army knife of lossless video/audio editing
remove double extension #265
Mikael Finstadc731e0790f6e
diff --git a/src/util.js b/src/util.jsindex 7715febe..b32da667 100644--- a/src/util.js+++ b/src/util.js@@ -45,9 +45,9 @@ function getOutDir(customOutDir, filePath) {function getOutPath(customOutDir, filePath, nameSuffix) {if (!filePath) return undefined;- const basename = path.basename(filePath);+ const parsed = path.parse(filePath);- return path.join(getOutDir(customOutDir, filePath), `${basename}-${nameSuffix}`);+ return path.join(getOutDir(customOutDir, filePath), `${parsed.name}-${nameSuffix}`);}async function transferTimestamps(inPath, outPath) {