obs-x264: Adjust log message

Use the actual parameter from the x264 params for CRF, and also make
sure to specify that CRF is meant to be 0 if CBR is enabled.
master
jp9000 2015-09-19 08:52:11 -07:00
parent 165766254a
commit ddcf2436c1
1 changed files with 3 additions and 2 deletions

View File

@ -435,7 +435,7 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings,
info("settings:\n" info("settings:\n"
"\tbitrate: %d\n" "\tbitrate: %d\n"
"\tbuffer size: %d\n" "\tbuffer size: %d\n"
"\tcrf: %d\n" "\tcrf: %d%s\n"
"\tfps_num: %d\n" "\tfps_num: %d\n"
"\tfps_den: %d\n" "\tfps_den: %d\n"
"\twidth: %d\n" "\twidth: %d\n"
@ -445,7 +445,8 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings,
"\tcbr: %s", "\tcbr: %s",
obsx264->params.rc.i_vbv_max_bitrate, obsx264->params.rc.i_vbv_max_bitrate,
obsx264->params.rc.i_vbv_buffer_size, obsx264->params.rc.i_vbv_buffer_size,
crf, (int)obsx264->params.rc.f_rf_constant,
cbr ? " (0 when CBR is enabled)" : "",
voi->fps_num, voi->fps_den, voi->fps_num, voi->fps_den,
width, height, width, height,
obsx264->params.i_keyint_max, obsx264->params.i_keyint_max,