encoder/aom-av1: Fix automatic selection of AV1 profile

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-10-06 23:20:57 +02:00
parent 2abbbfe133
commit 8250e63fd3
1 changed files with 2 additions and 2 deletions

View File

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