mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Fixed some deprecation warnings in VideoFFmpegComponent.cpp when building with FFmpeg 6.1 or higher
This commit is contained in:
parent
d5b5bb5ac5
commit
8a91c558db
|
@ -744,10 +744,7 @@ void VideoFFmpegComponent::readFrames()
|
|||
destFrame->pict_type = mVideoFrame->pict_type;
|
||||
destFrame->chroma_location =
|
||||
mVideoFrame->chroma_location;
|
||||
#if LIBAVUTIL_VERSION_MAJOR > 58 || (LIBAVUTIL_VERSION_MAJOR == 58 && LIBAVUTIL_VERSION_MINOR >= 29)
|
||||
// TODO: Figure out how this should be done in >= 6.1
|
||||
destFrame->pkt_pos = mVideoFrame->pkt_pos;
|
||||
#else
|
||||
#if LIBAVUTIL_VERSION_MAJOR < 58 || (LIBAVUTIL_VERSION_MAJOR == 58 && LIBAVUTIL_VERSION_MINOR < 29)
|
||||
destFrame->pkt_pos = mVideoFrame->pkt_pos;
|
||||
#endif
|
||||
#if LIBAVUTIL_VERSION_MAJOR < 58
|
||||
|
@ -755,10 +752,7 @@ void VideoFFmpegComponent::readFrames()
|
|||
#else
|
||||
destFrame->duration = mVideoFrame->duration;
|
||||
#endif
|
||||
#if LIBAVUTIL_VERSION_MAJOR > 58 || (LIBAVUTIL_VERSION_MAJOR == 58 && LIBAVUTIL_VERSION_MINOR >= 29)
|
||||
// TODO: Figure out how this should be done in >= 6.1
|
||||
destFrame->pkt_size = mVideoFrame->pkt_size;
|
||||
#else
|
||||
#if LIBAVUTIL_VERSION_MAJOR < 58 || (LIBAVUTIL_VERSION_MAJOR == 58 && LIBAVUTIL_VERSION_MINOR < 29)
|
||||
destFrame->pkt_size = mVideoFrame->pkt_size;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue