1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 11:43:17 +01:00

improve inverse #909

This commit is contained in:
Mikael Finstad 2021-10-30 22:43:41 +07:00
parent 1a3af8323b
commit 9c77e74d14
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -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);
}