mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02: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:
parent
a1fb49ccd6
commit
08f7a3778d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user