Merge pull request #1789 from remjey/vaapi-fix-cbr

Fix VAAPI CBR
master
Jim 2019-05-11 20:21:08 -07:00 committed by GitHub
commit 3d6cdf05d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ static bool vaapi_update(void *data, obs_data_t *settings)
enc->context->max_b_frames = bf;
enc->context->level = level;
enc->context->bit_rate = bitrate * 1000;
enc->context->rc_max_rate = bitrate * 1000;
enc->context->width = obs_encoder_get_width(enc->encoder);
enc->context->height = obs_encoder_get_height(enc->encoder);