summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AVIDump.cpp
diff options
context:
space:
mode:
authorAnthony <aserna3@gmail.com>2017-12-06 09:29:08 -0800
committerorbea <orbea@fredslev.dk>2018-04-06 19:53:10 -0700
commit9e2806c181701eafddfc9e01f32d22d2fafd710a (patch)
tree6b00ece7d8142e2f3eb4e272e52d222b68e44f66 /Source/Core/VideoCommon/AVIDump.cpp
parenta957bd1ecc7af636eab2cb449b14801abb06b0bd (diff)
[AVIDump] fix compilation issues on Linux
Diffstat (limited to 'Source/Core/VideoCommon/AVIDump.cpp')
-rw-r--r--Source/Core/VideoCommon/AVIDump.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp
index 5ae81cd65a..71540d8bfb 100644
--- a/Source/Core/VideoCommon/AVIDump.cpp
+++ b/Source/Core/VideoCommon/AVIDump.cpp
@@ -31,6 +31,7 @@ extern "C" {
#include "VideoCommon/VideoConfig.h"
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 1)
+#define AV_CODEC_FLAG_GLOBAL_HEADER CODEC_FLAG_GLOBAL_HEADER
#define av_frame_alloc avcodec_alloc_frame
#define av_frame_free avcodec_free_frame
#endif
@@ -191,7 +192,7 @@ bool AVIDump::CreateVideoFile()
s_codec_context->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGRA : AV_PIX_FMT_YUV420P;
if (output_format->flags & AVFMT_GLOBALHEADER)
- s_codec_context->flags |= CODEC_FLAG_GLOBAL_HEADER;
+ s_codec_context->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
if (avcodec_open2(s_codec_context, codec, nullptr) < 0)
{