summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-04-22 11:03:33 +0100
committersr55 <[email protected]>2019-04-22 11:03:33 +0100
commit4ee9eb8fabc2c3404e7b5b939f0ee291fa5053cc (patch)
treefd8cac30fd369cc38faea567fde65390d794ef67
parent52247065643a76c728ecfb9269b512c83a13b1ec (diff)
WinGui: Fix a preset import ordering bug that could produce an incorrect audio bitrate. Fixes #2062
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
index 9a1128973..360cf7cab 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
@@ -389,8 +389,7 @@ namespace HandBrakeWPF.Services.Presets.Factories
foreach (var audioTrack in importedPreset.AudioList)
{
AudioBehaviourTrack track = new AudioBehaviourTrack();
- track.Bitrate = audioTrack.AudioBitrate;
-
+
// track.CompressionLevel = audioTrack.AudioCompressionLevel;
// track.AudioDitherMethod = audioTrack.AudioDitherMethod;
if (audioTrack.AudioEncoder == "ca_aac")
@@ -400,6 +399,7 @@ namespace HandBrakeWPF.Services.Presets.Factories
track.Encoder = EnumHelper<AudioEncoder>.GetValue(audioTrack.AudioEncoder);
track.MixDown = HandBrakeEncoderHelpers.GetMixdown(audioTrack.AudioMixdown);
+ track.Bitrate = audioTrack.AudioBitrate;
// track.AudioNormalizeMixLevel = audioTrack.AudioNormalizeMixLevel;