mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-03 16:47:26 +00:00
encoder/aom-av1: Fix automatic selection of AV1 profile
This commit is contained in:
parent
1df8eb4a89
commit
41a0873deb
1 changed files with 2 additions and 2 deletions
|
@ -392,8 +392,8 @@ aom_av1_instance::aom_av1_instance(obs_data_t* settings, obs_encoder_t* self, bo
|
|||
_settings.profile = static_cast<codec::av1::profile>(obs_data_get_int(settings, ST_KEY_ENCODER_PROFILE));
|
||||
if (_settings.profile == codec::av1::profile::UNKNOWN) {
|
||||
// Resolve the automatic profile to a proper value.
|
||||
bool need_professional = (_settings.color_format == VIDEO_FORMAT_I422);
|
||||
bool need_high = (_settings.color_format == VIDEO_FORMAT_I444) || _settings.monochrome;
|
||||
bool need_professional = (_settings.color_format == AOM_IMG_FMT_I422);
|
||||
bool need_high = (_settings.color_format == AOM_IMG_FMT_I444) || _settings.monochrome;
|
||||
|
||||
if (need_professional) {
|
||||
_settings.profile = codec::av1::profile::PROFESSIONAL;
|
||||
|
|
Loading…
Reference in a new issue