diff options
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index fbe5e90c7..935d961c5 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -52,10 +52,17 @@ ghb_adjust_audio_rate_combos(signal_user_data_t *ud) { gint br = ainfo.bitrate / 1000; // Set the values for bitrate and samplerate to the input rates - if (br >= 8) + if (br < 8) + br = 160; + if (ghb_audio_is_passthru (ainfo.codec)) + { ghb_set_passthru_bitrate_opts (ud->builder, br); + } else - br = 160; + { + acodec = ghb_select_audio_codec(ud, audioindex); + br = ghb_find_closest_audio_bitrate(acodec, br); + } ghb_ui_update(ud, "AudioBitrate", ghb_int64_value(br)); ghb_ui_update(ud, "AudioSamplerate", ghb_int64_value(0)); ghb_ui_update(ud, "AudioMixdown", ghb_int64_value(0)); |