mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
obs-ffmpeg: Only allow AMF high/baseline profiles for AVC
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user