Bug Description
The TrimControl component validates that trimStart < trimEnd, but when trimEnd is manually set to exactly equal trimStart, the validation may pass (depending on floating point precision), resulting in a zero-length video being passed to FFmpeg.
Steps to Reproduce
- Upload a video
- In TrimControl, set Start to
5.0 and End to 5.0
- Attempt to export
- FFmpeg may error or produce an empty video
Expected Behavior
The UI should prevent trimStart from being equal to trimEnd and show a validation error.
File Reference
src/components/TrimControl.tsx — validation logic
- Should require
trimEnd > trimStart + minimumClipDuration (e.g., 0.1 seconds)
Bug Description
The
TrimControlcomponent validates thattrimStart < trimEnd, but whentrimEndis manually set to exactly equaltrimStart, the validation may pass (depending on floating point precision), resulting in a zero-length video being passed to FFmpeg.Steps to Reproduce
5.0and End to5.0Expected Behavior
The UI should prevent trimStart from being equal to trimEnd and show a validation error.
File Reference
src/components/TrimControl.tsx— validation logictrimEnd > trimStart + minimumClipDuration(e.g., 0.1 seconds)