]> granicus.if.org Git - handbrake/commitdiff
CLI: fix initialization of audio bitrate override
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 14 Feb 2019 18:15:17 +0000 (11:15 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 14 Feb 2019 18:16:52 +0000 (11:16 -0700)
(cherry picked from commit a058133585c9672d5737fbdda355c9c562e8c289)

test/test.c

index 4b3063c462d665fe64080258c0a074c632c19448..2c5891db731449b3e33f4716be07cb40d4c5e75b 100644 (file)
@@ -3653,6 +3653,7 @@ static hb_dict_t * PreparePreset(const char *preset_name)
                     ii = last_bitrate + 1;
                     for (; ii < count; ii++)
                     {
+                        audio_dict = hb_value_array_get(list, ii);
                         hb_dict_set(audio_dict, "AudioBitrate",
                             hb_value_int(atoi(abitrates[last_bitrate])));
                     }