obs-qsv11: Add deprecated warning for forced CBR mode
Using the "cbr" parameter is now considered deprecated in favor of using "rate_control" to set the rate control method.master
parent
978e607522
commit
c7923bcbe4
|
@ -308,9 +308,16 @@ static void update_params(struct obs_qsv *obsqsv, obs_data_t *settings)
|
||||||
else if (astrcmpi(profile, "high") == 0)
|
else if (astrcmpi(profile, "high") == 0)
|
||||||
obsqsv->params.nCodecProfile = MFX_PROFILE_AVC_HIGH;
|
obsqsv->params.nCodecProfile = MFX_PROFILE_AVC_HIGH;
|
||||||
|
|
||||||
/* internal convenience parameter, overrides rate control param */
|
/* internal convenience parameter, overrides rate control param
|
||||||
if (cbr_override)
|
* XXX: Deprecated */
|
||||||
|
if (cbr_override) {
|
||||||
|
warn("\"cbr\" setting has been deprecated for all encoders! "
|
||||||
|
"Please set \"rate_control\" to \"CBR\" instead. "
|
||||||
|
"Forcing CBR mode. "
|
||||||
|
"(Note to all: this is why you shouldn't use strings for "
|
||||||
|
"common settings)");
|
||||||
rate_control = "CBR";
|
rate_control = "CBR";
|
||||||
|
}
|
||||||
|
|
||||||
if (astrcmpi(rate_control, "CBR") == 0)
|
if (astrcmpi(rate_control, "CBR") == 0)
|
||||||
obsqsv->params.nRateControl = MFX_RATECONTROL_CBR;
|
obsqsv->params.nRateControl = MFX_RATECONTROL_CBR;
|
||||||
|
|
Loading…
Reference in New Issue