summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FrameDump.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-11-22 12:45:59 +0100
committerGitHub <noreply@github.com>2020-11-22 12:45:59 +0100
commitb53127a1fa62c751d5c8c37d877c61ff145ded6f (patch)
tree6d82fb231420c69928ad076a76089a5ffb023866 /Source/Core/VideoCommon/FrameDump.cpp
parent5d9eb8f6ce127f715db6bf99c656b0c13041e23e (diff)
parent118d05641046d781558f5abffb1870f37c9331e3 (diff)
Merge pull request #9274 from JosJuice/av-register-all
FrameDump: Re-add call to av_register_all
Diffstat (limited to 'Source/Core/VideoCommon/FrameDump.cpp')
-rw-r--r--Source/Core/VideoCommon/FrameDump.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/FrameDump.cpp b/Source/Core/VideoCommon/FrameDump.cpp
index 07efffd089..891aca59b8 100644
--- a/Source/Core/VideoCommon/FrameDump.cpp
+++ b/Source/Core/VideoCommon/FrameDump.cpp
@@ -69,6 +69,9 @@ void InitAVCodec()
static bool first_run = true;
if (first_run)
{
+#if LIBAVCODEC_VERSION_MICRO >= 100 && LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
+ av_register_all();
+#endif
// TODO: We never call avformat_network_deinit.
avformat_network_init();
first_run = false;