mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 23:29:29 -06:00
FF-1251 - fixed issue in audio converter to skip if bitrate is set to automatic/same as original
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user