mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user