Skip to content

The swiss army knife of lossless video/audio editing

improve inverse #909

Mikael Finstad9c77e74d14ba
diff --git a/src/segments.js b/src/segments.js
index a6452a7d..70d768c4 100644
--- a/src/segments.js
+++ b/src/segments.js
@@ -75,5 +75,7 @@ export function invertSegments(sortedCutSegments, duration) {
});
}
- return ret;
+ // Filter out zero length resulting segments
+ // https://github.com/mifi/lossless-cut/issues/909
+ return ret.filter(({ start, end }) => end > start);
}