Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Webysther Sperandio 2026-01-28 05:03:17 +01:00 committed by GitHub
parent 99c4c4fbd2
commit c10e4e6f30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -758,7 +758,7 @@ export async function convert(
} else if(has_hwa){
// If hardware acceleration is specified but no codec override,
// remove from args
ffmpegArgs = ffmpegArgs.slice(loc_hwa-1, loc_hwa);
ffmpegArgs = ffmpegArgs.filter((_, i) => i !== loc_hwa && i !== loc_hwa + 1);
}
// Debug: print the full ffmpeg command