mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
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.
This commit is contained in:
parent
38875e5600
commit
59f72d3571
1 changed files with 2 additions and 0 deletions
|
@ -203,8 +203,10 @@ void AVIDump::AddFrame(const u8* data, int width, int height)
|
||||||
pkt.dts = av_rescale_q(pkt.dts,
|
pkt.dts = av_rescale_q(pkt.dts,
|
||||||
s_stream->codec->time_base, s_stream->time_base);
|
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)
|
if (s_stream->codec->coded_frame->key_frame)
|
||||||
pkt.flags |= AV_PKT_FLAG_KEY;
|
pkt.flags |= AV_PKT_FLAG_KEY;
|
||||||
|
#endif
|
||||||
pkt.stream_index = s_stream->index;
|
pkt.stream_index = s_stream->index;
|
||||||
av_interleaved_write_frame(s_format_context, &pkt);
|
av_interleaved_write_frame(s_format_context, &pkt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue