obs-ffmpeg: Swap hq and mq preset order

This is for consistency with b2ff22a587.
Max Quality (mq) is "higher" than Quality (hq), and it's helpful for the
code order to reflect that.
This commit is contained in:
Ryan Foster 2022-10-31 13:53:20 -04:00
parent a1fb49ccd6
commit 08f7a3778d

View file

@ -462,13 +462,13 @@ static bool init_encoder_base(struct nvenc_data *enc, obs_data_t *settings,
if (obs_data_has_user_value(settings, "preset") &&
!obs_data_has_user_value(settings, "preset2")) {
if (astrcmpi(preset, "hq") == 0) {
nv_preset = NV_ENC_PRESET_P5_GUID;
if (astrcmpi(preset, "mq") == 0) {
nv_preset = NV_ENC_PRESET_P6_GUID;
nv_tuning = NV_ENC_TUNING_INFO_HIGH_QUALITY;
nv_multipass = NV_ENC_TWO_PASS_QUARTER_RESOLUTION;
} else if (astrcmpi(preset, "mq") == 0) {
nv_preset = NV_ENC_PRESET_P6_GUID;
} else if (astrcmpi(preset, "hq") == 0) {
nv_preset = NV_ENC_PRESET_P5_GUID;
nv_tuning = NV_ENC_TUNING_INFO_HIGH_QUALITY;
nv_multipass = NV_ENC_TWO_PASS_QUARTER_RESOLUTION;