Skip to content

Commit

Permalink
fix: overwrite flag
Browse files Browse the repository at this point in the history
  • Loading branch information
massimo-rnd authored Feb 5, 2025
2 parents bf2d52a + 663ad92 commit 1e2da5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FFMP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ static async Task ProcessFile(string inputFile, Options options, string[] ffmpeg
}

// Build FFmpeg arguments
var arguments = $"-i \"{Path.GetFullPath(inputFile)}\"";
var arguments = options.Overwrite ? "-y " : "";
arguments += $"-i \"{Path.GetFullPath(inputFile)}\"";

if (options.Convert)
{
arguments += $" \"{outputFile}\"";
Expand Down

0 comments on commit 1e2da5f

Please sign in to comment.