mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-04 17:17:25 +00:00
encoder/aom-av1: Respect "Default" setting for Metric tune setting
This commit is contained in:
parent
41a0873deb
commit
a96151a874
1 changed files with 3 additions and 2 deletions
|
@ -426,8 +426,9 @@ aom_av1_instance::aom_av1_instance(obs_data_t* settings, obs_encoder_t* self, bo
|
||||||
}
|
}
|
||||||
|
|
||||||
{ // Tuning
|
{ // Tuning
|
||||||
_settings.tune_metric =
|
if (auto v = obs_data_get_int(settings, ST_KEY_ADVANCED_TUNE_METRIC); v != -1) {
|
||||||
static_cast<aom_tune_metric>(obs_data_get_int(settings, ST_KEY_ADVANCED_TUNE_METRIC));
|
_settings.tune_metric = static_cast<aom_tune_metric>(v);
|
||||||
|
}
|
||||||
_settings.tune_content =
|
_settings.tune_content =
|
||||||
static_cast<aom_tune_content>(obs_data_get_int(settings, ST_KEY_ADVANCED_TUNE_CONTENT));
|
static_cast<aom_tune_content>(obs_data_get_int(settings, ST_KEY_ADVANCED_TUNE_CONTENT));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue