fixing converting to mp3

This commit is contained in:
John Andrews
2024-03-22 16:54:51 +13:00
parent aacfb0eb79
commit f54cba1157
2 changed files with 4 additions and 3 deletions

View File

@@ -29,8 +29,11 @@ namespace FileFlows.AudioNodes
extension = null;
string codecKey = Codec + "_codec";
string codec = args.GetToolPathActual(codecKey)?.EmptyAsNull() ?? Codec;
if (codec == "mp3")
if (codec.ToLowerInvariant() == "mp3")
{
extension = "mp3";
codec = "mp3";
}
else if (codec == "libopus")
extension = "ogg";
else if (codec == "libvorbis" || codec == "ogg")