From c10e4e6f3027e43e7985b2244fcc58362120e21f Mon Sep 17 00:00:00 2001 From: Webysther Sperandio Date: Wed, 28 Jan 2026 05:03:17 +0100 Subject: [PATCH] Apply suggestion from @cubic-dev-ai[bot] Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/converters/ffmpeg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converters/ffmpeg.ts b/src/converters/ffmpeg.ts index 7bc8666..c6997f4 100644 --- a/src/converters/ffmpeg.ts +++ b/src/converters/ffmpeg.ts @@ -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