Update USE_FFMPEG checks

This commit is contained in:
Henrik Rydgård committed 2024-04-10 18:40:02 +02:00
1 parent fc58a97024
commit 5b3be0d720
3 files changed
+29 -1

No files matched your search

+10 -1
View File
@@ -38,6 +38,15 @@ extern "C" {
#include "Core/FFMPEGCompat.h"
}
#else
extern "C" {
struct AVCodec;
struct AVCodecContext;
struct SwrContext;
struct AVFrame;
}
#endif // USE_FFMPEG
// FFMPEG-based decoder. TODO: Replace with individual codecs.
@@ -77,7 +86,7 @@ private:
#if HAVE_LIBAVCODEC_CONST_AVCODEC // USE_FFMPEG is implied
const
#endif
AVCodec *codec_;
AVCodec *codec_;
AVCodecContext *codecCtx_;
SwrContext *swrCtx_;