fix audio track issue
This commit is contained in:
parent
2ef8bda147
commit
ee64d06e0a
1 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,7 @@ app.whenReady().then(() => {
|
||||||
const tmpFile = getNewFilename(file, "TMP_");
|
const tmpFile = getNewFilename(file, "TMP_");
|
||||||
let outFile;
|
let outFile;
|
||||||
|
|
||||||
const audioTracks = getNumberOfAudioTracks(file);
|
let audioTracks = getNumberOfAudioTracks(file);
|
||||||
|
|
||||||
switch (audioTracks.length) {
|
switch (audioTracks.length) {
|
||||||
case 2:
|
case 2:
|
||||||
|
@ -120,6 +120,8 @@ app.whenReady().then(() => {
|
||||||
// Delete the temporary video file
|
// Delete the temporary video file
|
||||||
deleteFile(tmpFile);
|
deleteFile(tmpFile);
|
||||||
|
|
||||||
|
audioTracks = getNumberOfAudioTracks(outFile);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Other cases: no merge needed
|
// Other cases: no merge needed
|
||||||
|
|
Loading…
Reference in a new issue