]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a preset import ordering bug that could produce an incorrect audio bitrat...
authorsr55 <sr55.hb@outlook.com>
Mon, 22 Apr 2019 10:03:33 +0000 (11:03 +0100)
committersr55 <sr55.hb@outlook.com>
Mon, 22 Apr 2019 10:03:33 +0000 (11:03 +0100)
win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs

index 9a1128973500c098af9cf912845f7ca935734be1..360cf7cabf3c95dee7a8d584d6bf68f80ab5ce83 100644 (file)
@@ -389,8 +389,7 @@ namespace HandBrakeWPF.Services.Presets.Factories
                 foreach (var audioTrack in importedPreset.AudioList)\r
                 {\r
                     AudioBehaviourTrack track = new AudioBehaviourTrack();\r
-                    track.Bitrate = audioTrack.AudioBitrate;\r
-\r
+                    \r
                     // track.CompressionLevel = audioTrack.AudioCompressionLevel;\r
                     // track.AudioDitherMethod = audioTrack.AudioDitherMethod;\r
                     if (audioTrack.AudioEncoder == "ca_aac")\r
@@ -400,6 +399,7 @@ namespace HandBrakeWPF.Services.Presets.Factories
 \r
                     track.Encoder = EnumHelper<AudioEncoder>.GetValue(audioTrack.AudioEncoder);\r
                     track.MixDown = HandBrakeEncoderHelpers.GetMixdown(audioTrack.AudioMixdown);\r
+                    track.Bitrate = audioTrack.AudioBitrate;\r
 \r
                     // track.AudioNormalizeMixLevel = audioTrack.AudioNormalizeMixLevel;\r
 \r