FF-1251 - fixed issue in audio converter to skip if bitrate is set to automatic/same as original

This commit is contained in:
John Andrews
2024-02-01 08:42:55 +13:00
parent e3b9dea109
commit c19bfa2aab

View File

@@ -159,7 +159,8 @@ public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
{
bool codecSame = stream.Stream.Codec?.ToLower() == Codec?.ToLower();
bool channelsSame = Channels == 0 || Math.Abs(Channels - stream.Stream.Channels) < 0.05f;
bool bitrateSame = stream.Stream.Bitrate == 0 || Math.Abs(stream.Stream.Bitrate - Bitrate) < 0.05f;
bool bitrateSame = Bitrate < 2 || stream.Stream.Bitrate == 0 ||
Math.Abs(stream.Stream.Bitrate - Bitrate) < 0.05f;
if (codecSame && channelsSame && bitrateSame)
{