mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed some compiler errors when building with FFmpeg 5.0
This commit is contained in:
parent
afc99d374c
commit
2df8a867ad
|
@ -1281,8 +1281,13 @@ void VideoFFmpegComponent::startVideoStream()
|
||||||
bool hwDecoding = false;
|
bool hwDecoding = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LIBAVUTIL_VERSION_MAJOR > 56
|
||||||
|
mVideoStreamIndex = av_find_best_stream(mFormatContext, AVMEDIA_TYPE_VIDEO, -1, -1,
|
||||||
|
const_cast<const AVCodec**>(&mHardwareCodec), 0);
|
||||||
|
#else
|
||||||
mVideoStreamIndex =
|
mVideoStreamIndex =
|
||||||
av_find_best_stream(mFormatContext, AVMEDIA_TYPE_VIDEO, -1, -1, &mHardwareCodec, 0);
|
av_find_best_stream(mFormatContext, AVMEDIA_TYPE_VIDEO, -1, -1, &mHardwareCodec, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (mVideoStreamIndex < 0) {
|
if (mVideoStreamIndex < 0) {
|
||||||
LOG(LogError) << "VideoFFmpegComponent::startVideoStream(): "
|
LOG(LogError) << "VideoFFmpegComponent::startVideoStream(): "
|
||||||
|
|
|
@ -20,6 +20,7 @@ extern "C" {
|
||||||
#include <libavfilter/buffersink.h>
|
#include <libavfilter/buffersink.h>
|
||||||
#include <libavfilter/buffersrc.h>
|
#include <libavfilter/buffersrc.h>
|
||||||
#include <libavformat/avformat.h>
|
#include <libavformat/avformat.h>
|
||||||
|
#include <libavutil/channel_layout.h>
|
||||||
#include <libavutil/imgutils.h>
|
#include <libavutil/imgutils.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue