Check for valid coordinates added, bugs fixed.

This commit is contained in:
nevolodia
2025-05-25 14:14:01 +02:00
parent 13a566566f
commit 2f104f5a1b
2 changed files with 47 additions and 1 deletions

View File

@@ -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',