diff options
| author | Silvan Jegen <s.jegen@gmail.com> | 2016-01-18 20:01:11 +0100 |
|---|---|---|
| committer | Silvan Jegen <s.jegen@gmail.com> | 2016-01-19 20:38:21 +0100 |
| commit | 59f72d35719bc9f3576d29f2a22343611fa455e9 (patch) | |
| tree | ab959db86b4d67384eb40ca7cfbfa430eefe17bd /Source/Core/VideoCommon/AVIDump.cpp | |
| parent | 38875e5600e24072dcb238c171d62fd008169ef6 (diff) | |
AVIDump: coded_frame is deprecated
Setting this is not required anymore as of commit 40cf1bbacc622 of
FFmpeg.
For users of older versions of the libavcodec library we guard the
change with an #if.
Diffstat (limited to 'Source/Core/VideoCommon/AVIDump.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AVIDump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp index 28adcc3476..e12a21ce6a 100644 --- a/Source/Core/VideoCommon/AVIDump.cpp +++ b/Source/Core/VideoCommon/AVIDump.cpp @@ -203,8 +203,10 @@ void AVIDump::AddFrame(const u8* data, int width, int height) pkt.dts = av_rescale_q(pkt.dts, s_stream->codec->time_base, s_stream->time_base); } +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 60, 100) if (s_stream->codec->coded_frame->key_frame) pkt.flags |= AV_PKT_FLAG_KEY; +#endif pkt.stream_index = s_stream->index; av_interleaved_write_frame(s_format_context, &pkt); |
