mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
UI: Fix advanced audio encoder bitrate always set to 192
Audio bitrate maps needs to be populated while finding closest available bitrate Not populating makes always fallback to 192
This commit is contained in:
@@ -388,6 +388,8 @@ const std::vector<int> &GetAudioEncoderBitrates(const char *id)
|
||||
|
||||
int FindClosestAvailableAudioBitrate(const char *id, int bitrate)
|
||||
{
|
||||
PopulateBitrateLists();
|
||||
|
||||
int prev = 0;
|
||||
int next = INVALID_BITRATE;
|
||||
std::string encoder = id;
|
||||
|
||||
Reference in New Issue
Block a user