Skip to content

The swiss army knife of lossless video/audio editing

don't allow remove initial cut segments

Mikael Finstad1a5934124734
diff --git a/src/App.jsx b/src/App.jsx
index 759003c5..66ef0487 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -719,6 +719,8 @@ const App = memo(() => {
}, [copyAnyAudioTrack, filePath, mainStreams]);
const removeCutSegment = useCallback(() => {
+ if (cutSegments.length === 1 && cutSegments[0].start == null && cutSegments[0].end == null) return; // Initial segment
+
if (cutSegments.length <= 1) {
setCutSegments(createInitialCutSegments());
return;