🎥 Make videos programmatically with React
fix audio bug where 1 audio track that is delayed does not correctly delay
Jonny Burgerdb762c9619f1
diff --git a/packages/renderer/src/merge-audio-track.ts b/packages/renderer/src/merge-audio-track.tsindex b4fb187dae..342a96f0e2 100644--- a/packages/renderer/src/merge-audio-track.ts+++ b/packages/renderer/src/merge-audio-track.ts@@ -41,10 +41,7 @@ const mergeAudioTrackUnlimited = async ({return;}- if (files.length === 1) {- copyFileSync(files[0].outName, outName);- return;- }+ // Previously a bug: We cannot optimize for files.length === 1 because we need to pad the audio// In FFMPEG, the total number of left and right tracks that can be merged at one time is limited to 64if (files.length >= 32) {