Skip to content

The swiss army knife of lossless video/audio editing

don't allow adding 0 length seg at end of timeline

Mikael Finstad2ff8689d4012
diff --git a/src/App.jsx b/src/App.jsx
index 21d91cf7..3bd45a31 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -509,6 +509,8 @@ const App = memo(() => {
if (keyframeAlignedStart != null) suggestedStart = keyframeAlignedStart;
} */
+ if (suggestedStart >= duration) return;
+
const cutSegmentsNew = [
...cutSegments,
createIndexedSegment({ segment: { start: suggestedStart }, incrementCount: true }),