Merge pull request #2043 from pkviet/nvenc-dbrfix

obs-ffmpeg: Set some parameters for dynamic bitrate in new nvenc
This commit is contained in:
Jim 2019-08-24 20:25:12 -07:00 committed by GitHub
commit 68bdadf812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,8 +240,11 @@ static bool nvenc_update(void *data, obs_data_t *settings)
NV_ENC_RECONFIGURE_PARAMS params = {0};
params.version = NV_ENC_RECONFIGURE_PARAMS_VER;
params.reInitEncodeParams = enc->params;
params.resetEncoder = 1;
params.forceIDR = 1;
if (FAILED(nv.nvEncReconfigureEncoder(enc->session, &params))) {
if (NV_FAILED(nv.nvEncReconfigureEncoder(enc->session,
&params))) {
return false;
}
}