The swiss army knife of lossless video/audio editing
Don't try to seek when no duration
Mikael Finstad0090bf85738f
diff --git a/src/renderer.jsx b/src/renderer.jsxindex 7e70273a..94dd24e2 100644--- a/src/renderer.jsx+++ b/src/renderer.jsx@@ -20,6 +20,8 @@ function getVideo() {function seekAbs(val) {const video = getVideo();+ if (val == null || isNaN(val)) return;+let outVal = val;if (outVal < 0) outVal = 0;if (outVal > video.duration) outVal = video.duration;@@ -230,6 +232,9 @@ class App extends React.Component {const cutStartTime = this.state.cutStartTime;const cutEndTime = this.state.cutEndTime;const filePath = this.state.filePath;+ if (cutStartTime === undefined || cutEndTime === undefined) {+ return alert('Please select both start and end time');+ }if (cutStartTime >= cutEndTime) {return alert('Start time must be before end time');}