diff options
author | sr55 <[email protected]> | 2018-04-23 21:59:09 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-04-23 21:59:09 +0100 |
commit | e8158b447d72735ecaf60ed4e5f3610e6673c0fa (patch) | |
tree | ccf893946dc1a00fe168830cae02fbd22b2ccd65 /win/CS/HandBrakeWPF | |
parent | de49d8c04a8e31ef41368c5a09223f2d84c74944 (diff) |
WinGui: Tidy up AudioTrack.cs
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs index 24a56a8b2..fe58ade77 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs @@ -113,7 +113,6 @@ namespace HandBrakeWPF.Services.Encode.Model.Models { AudioEncoder chosenEncoder = track.Encoder; HBAudioEncoder encoderInfo = HandBrakeEncoderHelpers.GetAudioEncoder(EnumHelper<AudioEncoder>.GetShortName(track.Encoder)); - HBAudioEncoder fallbackEncoderInfo; if (track.IsPassthru && (sourceTrack.Codec & encoderInfo.Id) == 0) { chosenEncoder = fallback; @@ -127,9 +126,7 @@ namespace HandBrakeWPF.Services.Encode.Model.Models this.mixDown = track.MixDown != null ? track.MixDown.ShortName : "dpl2"; // If the mixdown isn't supported, downgrade it. - - - if (track.IsPassthru && track.MixDown != null && encoderInfo != null && !HandBrakeEncoderHelpers.MixdownIsSupported(track.MixDown, encoderInfo, sourceTrack.ChannelLayout)) + if (track.IsPassthru && track.MixDown != null && encoderInfo != null && !HandBrakeEncoderHelpers.MixdownIsSupported(track.MixDown, encoderInfo, sourceTrack.ChannelLayout)) { HBMixdown changedMixdown = HandBrakeEncoderHelpers.GetDefaultMixdown(encoderInfo, (ulong)sourceTrack.ChannelLayout); if (changedMixdown != null) |