mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
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:
parent
edec540695
commit
cf69f24917
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user