UI: Fix crash when saving advanced FFmpeg output

Selecting any supported FFmpeg format where ff_format_desc_extensions
returns NULL would crash the std::string constructor, so we pass an
empty extension instead (rtsp is one candidate format that triggers
the crash, on my machine at least)
This commit is contained in:
Palana
2015-09-16 16:20:17 +02:00
parent edec540695
commit cf69f24917

View File

@@ -2034,7 +2034,7 @@ void OBSBasicSettings::SaveFormat(QComboBox *combo)
desc.mimeType);
const char *ext = ff_format_desc_extensions(desc.desc);
string extStr = ext;
string extStr = ext ? ext : "";
char *comma = strchr(&extStr[0], ',');
if (comma)