mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-27 00:47:20 -04:00
When using custom RTMP output with a JSON config that omits encoder settings, settings.dump() produces "null" which obs_data_create_from_json cannot parse. Fall back to obs_data_create() for null/non-object settings so encoders use their defaults. Additionally, when bitrate_interpolation_points is absent, the code unconditionally set interpolation_table_data as empty arrays. This caused build_dbr_interpolation_table to wipe the default linear table, leaving DBR enabled but unable to adjust bitrates during congestion. Only set the interpolation data when all encoders provide it, otherwise fall back to the default linear 0-to-max interpolation.
32 KiB
32 KiB