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:
parent
b32af33f24
commit
a9a163657c
|
@ -154,7 +154,7 @@ bool FrameDump::CreateVideoFile()
|
||||||
|
|
||||||
File::CreateFullPath(dump_path);
|
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)
|
if (!output_format)
|
||||||
{
|
{
|
||||||
ERROR_LOG_FMT(FRAMEDUMP, "Invalid format {}", format);
|
ERROR_LOG_FMT(FRAMEDUMP, "Invalid format {}", format);
|
||||||
|
|
Loading…
Reference in New Issue