VideoCommon/FrameDump: Build fix for libavformat major version 59 and newer. av_guess_format now returns a pointer to const.

This commit is contained in:
Jordan Woyak 2022-01-30 13:16:51 -06:00
parent b32af33f24
commit a9a163657c

View file

@ -154,7 +154,7 @@ bool FrameDump::CreateVideoFile()
File::CreateFullPath(dump_path);
AVOutputFormat* const output_format = av_guess_format(format.c_str(), dump_path.c_str(), nullptr);
auto* const output_format = av_guess_format(format.c_str(), dump_path.c_str(), nullptr);
if (!output_format)
{
ERROR_LOG_FMT(FRAMEDUMP, "Invalid format {}", format);