From 8ee924529e15b19eefcbf085e9c806075d4aa655 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 26 Nov 2020 21:17:00 +0100 Subject: [PATCH] Fix merging code #96 I don't know why I did that. Sorting of segments can now be done from the menu --- src/ffmpeg.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ffmpeg.js b/src/ffmpeg.js index 5736e0f..78f8be1 100644 --- a/src/ffmpeg.js +++ b/src/ffmpeg.js @@ -292,11 +292,10 @@ function getOutFileExtension({ isCustomFormatSelected, outFormat, filePath }) { } export async function cutMultiple({ - customOutDir, filePath, segments: segmentsUnsorted, videoDuration, rotation, + customOutDir, filePath, segments, videoDuration, rotation, onProgress, keyframeCut, copyFileStreams, outFormat, isCustomFormatSelected, appendFfmpegCommandLog, shortestFlag, ffmpegExperimental, preserveMovData, avoidNegativeTs, }) { - const segments = sortBy(segmentsUnsorted, 'cutFrom'); const singleProgresses = {}; function onSingleProgress(id, singleProgress) { singleProgresses[id] = singleProgress;