mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
UI: Fix audio bitrate unlock if bitrate enforcing off
Fixes a bug where audio bitrate would not be unlocked if maximum bitrate enforcement is disabled.
This commit is contained in:
@@ -317,8 +317,10 @@ void SimpleOutput::Update()
|
||||
obs_service_apply_encoder_settings(main->GetService(),
|
||||
h264Settings, aacSettings);
|
||||
|
||||
if (advanced && !enforceBitrate)
|
||||
if (advanced && !enforceBitrate) {
|
||||
obs_data_set_int(h264Settings, "bitrate", videoBitrate);
|
||||
obs_data_set_int(aacSettings, "bitrate", audioBitrate);
|
||||
}
|
||||
|
||||
video_t *video = obs_get_video();
|
||||
enum video_format format = video_output_get_format(video);
|
||||
|
||||
Reference in New Issue
Block a user