UI: Replace FFmpeg encoder alias with long name
The alias is not really helpful and sometimes confusing, e.g. for HEVC (without libx265) it ends up being "hevc_nvenc (hevc_amf)" since it just contains the name of the default encoder. So instead of using the name of the default encoder, show the full name of the encoder instead.
This commit is contained in:
parent
c20bf0271c
commit
2f78bb7991
2 changed files with 5 additions and 6 deletions
|
|
@ -1136,9 +1136,11 @@ void OBSBasicSettings::LoadFormats()
|
|||
|
||||
static void AddCodec(QComboBox *combo, const FFmpegCodec &codec)
|
||||
{
|
||||
QString itemText(codec.name);
|
||||
if (codec.alias)
|
||||
itemText += QString(" (%1)").arg(codec.base_name);
|
||||
QString itemText;
|
||||
if (codec.long_name)
|
||||
itemText = QString("%1 - %2").arg(codec.name, codec.long_name);
|
||||
else
|
||||
itemText = codec.name;
|
||||
|
||||
combo->addItem(itemText, QVariant::fromValue(codec));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue