Просмотр исходного кода

obs-ffmpeg: Swap hq and mq preset order

This is for consistency with b2ff22a587dbe4595145d147abfa854fa2994fad.
Max Quality (mq) is "higher" than Quality (hq), and it's helpful for the
code order to reflect that.
Ryan Foster 3 лет назад
Родитель
Сommit
08f7a3778d
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      plugins/obs-ffmpeg/jim-nvenc.c

+ 4 - 4
plugins/obs-ffmpeg/jim-nvenc.c

@@ -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;