Skip to content

Commit a1235f4

Browse files
committed
Revert "obs-ffmpeg: Check nvenc max bframe count"
This reverts commit a793748. Not necessary, there's a better fix with 77fbfbe.
1 parent f405647 commit a1235f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/obs-ffmpeg/jim-nvenc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,7 @@ static bool init_encoder_base(struct nvenc_data *enc, obs_data_t *settings,
588588
config->gopLength = gop_size;
589589
config->frameIntervalP = 1 + bf;
590590

591-
int32_t max_bf = (int32_t)nv_get_cap(enc, NV_ENC_CAPS_NUM_MAX_BFRAMES);
592-
enc->bframes = bf <= max_bf ? bf : max_bf;
591+
enc->bframes = bf;
593592

594593
/* lookahead */
595594
const bool use_profile_lookahead = config->rcParams.enableLookahead;

0 commit comments

Comments
 (0)