提交 0481873e 编写于 作者: S SCG82 提交者: Jim

rtmp-services: Set actual integer value of bframes in services

上级 f79737d4
......@@ -515,8 +515,10 @@ static void apply_video_encoder_settings(obs_data_t *settings,
}
item = json_object_get(recommended, "bframes");
if (json_is_integer(item))
obs_data_set_int(settings, "bf", 0);
if (json_is_integer(item)) {
int bframes = json_integer_value(item);
obs_data_set_int(settings, "bf", bframes);
}
item = json_object_get(recommended, "x264opts");
if (json_is_string(item)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册