mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
Check for valid coordinates added, bugs fixed.
This commit is contained in:
@@ -45,6 +45,10 @@ export async function cropVideo(
|
||||
|
||||
const args = [];
|
||||
|
||||
if (options.width <= 0 || options.height <= 0) {
|
||||
throw new Error('Width and height must be positive');
|
||||
}
|
||||
|
||||
args.push('-i', inputName);
|
||||
args.push(
|
||||
'-vf',
|
||||
|
||||
Reference in New Issue
Block a user