0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

obs-x264: Set CRF value conditionally

Matches value seen when encoding with FFmpeg.
This commit is contained in:
jpark37 2021-03-28 15:59:57 -07:00 committed by Jim
parent dd552df15c
commit abf6a97ca9

View File

@ -518,10 +518,9 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t *settings,
}
} else {
obsx264->params.rc.i_rc_method = X264_RC_CRF;
obsx264->params.rc.f_rf_constant = (float)crf;
}
obsx264->params.rc.f_rf_constant = (float)crf;
if (info.format == VIDEO_FORMAT_NV12)
obsx264->params.i_csp = X264_CSP_NV12;
else if (info.format == VIDEO_FORMAT_I420)