Skip to content

The swiss army knife of lossless video/audio editing

fix bug

Mikael Finstad250506b087c4
diff --git a/src/renderer/src/dialogs/index.tsx b/src/renderer/src/dialogs/index.tsx
index 2c296de8..3905b465 100644
--- a/src/renderer/src/dialogs/index.tsx
+++ b/src/renderer/src/dialogs/index.tsx
@@ -246,7 +246,7 @@ export async function askForSegmentDuration({ totalDuration, inputPlaceholder, p
const segmentDuration = parseTimecode(v);
if (segmentDuration != null) {
const numSegments = Math.ceil(totalDuration / segmentDuration);
- if (segmentDuration > 0 && segmentDuration < fileDuration && numSegments <= maxSegments) return null;
+ if (segmentDuration > 0 && segmentDuration < totalDuration && numSegments <= maxSegments) return null;
}
return i18n.t('Please input a valid duration. Example: {{example}}', { example: inputPlaceholder });
},