Appease linter.

This commit is contained in:
Vlad Firoiu 2017-03-05 17:29:46 -08:00
parent fbff74c1eb
commit 71c0e30655
1 changed files with 6 additions and 5 deletions

View File

@ -101,7 +101,7 @@ static std::string GetDumpPath(const std::string& format)
return g_Config.sDumpPath; return g_Config.sDumpPath;
std::string s_dump_path = File::GetUserPath(D_DUMPFRAMES_IDX) + "framedump" + std::string s_dump_path = File::GetUserPath(D_DUMPFRAMES_IDX) + "framedump" +
std::to_string(s_file_index) + "." + format; std::to_string(s_file_index) + "." + format;
// Ask to delete file // Ask to delete file
if (File::Exists(s_dump_path)) if (File::Exists(s_dump_path))
@ -137,7 +137,8 @@ bool AVIDump::CreateVideoFile()
return false; return false;
} }
if(avformat_alloc_output_context2(&s_format_context, output_format, nullptr, s_dump_path.c_str()) < 0) if (avformat_alloc_output_context2(&s_format_context, output_format, nullptr,
s_dump_path.c_str()) < 0)
{ {
ERROR_LOG(VIDEO, "Could not allocate output context"); ERROR_LOG(VIDEO, "Could not allocate output context");
return false; return false;