浏览代码

Revert "obs-ffmpeg: Check nvenc max bframe count"

This reverts commit a793748743584686d212b5b513415da3c46db38f.

Not necessary, there's a better fix with 77fbfbe5c68a631.
jp9000 3 年之前
父节点
当前提交
a1235f498e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      plugins/obs-ffmpeg/jim-nvenc.c

+ 1 - 2
plugins/obs-ffmpeg/jim-nvenc.c

@@ -588,8 +588,7 @@ static bool init_encoder_base(struct nvenc_data *enc, obs_data_t *settings,
 	config->gopLength = gop_size;
 	config->frameIntervalP = 1 + bf;
 
-	int32_t max_bf = (int32_t)nv_get_cap(enc, NV_ENC_CAPS_NUM_MAX_BFRAMES);
-	enc->bframes = bf <= max_bf ? bf : max_bf;
+	enc->bframes = bf;
 
 	/* lookahead */
 	const bool use_profile_lookahead = config->rcParams.enableLookahead;