obs-ffmpeg: Only allow AMF high/baseline profiles for AVC

This commit is contained in:
Roman Huts
2022-11-07 23:39:38 -08:00
committed by jp9000
parent 535ced04d5
commit 1948ddf2fa
+4 -2
View File
@@ -993,9 +993,11 @@ static obs_properties_t *amf_properties_internal(amf_codec_type codec)
OBS_COMBO_FORMAT_STRING);
#define add_profile(val) obs_property_list_add_string(p, val, val)
add_profile("high");
if (amf_codec_type::AVC == codec)
add_profile("high");
add_profile("main");
add_profile("baseline");
if (amf_codec_type::AVC == codec)
add_profile("baseline");
#undef add_profile
obs_properties_add_int(props, "bf", obs_module_text("BFrames"),