1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 10:22:31 +01:00

fix crash

This commit is contained in:
Mikael Finstad 2020-02-18 22:22:13 +08:00
parent 6ca9f3d2db
commit 4c14cde1d1

View File

@ -504,6 +504,11 @@ const App = memo(() => {
const segments = invertCutSegments ? inverseCutSegments : apparentCutSegments;
if (!segments) {
errorToast('No segments to export!');
return;
}
const ffmpegSegments = segments.map((seg) => ({
cutFrom: seg.start,
cutTo: seg.end,