Merge pull request #6307 from rukai/fix-frame-dump-path

Handle framedump path not existing
This commit is contained in:
Markus Wick 2018-01-17 22:02:51 +01:00 committed by GitHub
commit e02025b45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ bool AVIDump::CreateVideoFile()
if (s_dump_path.empty())
return false;
File::CreateFullPath(s_dump_path);
AVOutputFormat* output_format = av_guess_format(s_format.c_str(), s_dump_path.c_str(), nullptr);
if (!output_format)
{