From 7af320156d513cfde8f62b2d96917b8dcc0d0ba6 Mon Sep 17 00:00:00 2001 From: JPikachu Date: Wed, 9 Apr 2025 22:42:19 +0100 Subject: [PATCH] Add the rest of the fmv fix Gosh I keep needing to fix my commits today --- src/video_core/host1x/ffmpeg/ffmpeg.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/video_core/host1x/ffmpeg/ffmpeg.h b/src/video_core/host1x/ffmpeg/ffmpeg.h index bd0ad97adc..ba441b3960 100644 --- a/src/video_core/host1x/ffmpeg/ffmpeg.h +++ b/src/video_core/host1x/ffmpeg/ffmpeg.h @@ -22,7 +22,7 @@ extern "C" { #include #include #ifndef ANDROID -#include +#include #endif #if defined(__GNUC__) || defined(__clang__) @@ -106,7 +106,11 @@ public: } bool IsInterlaced() const { - return m_frame->interlaced_frame != 0; +#if defined(FF_API_INTERLACED_FRAME) || LIBAVUTIL_VERSION_MAJOR >= 59 + return m_frame->flags & AV_FRAME_FLAG_INTERLACED; +#else + return m_frame->interlaced_frame; +#endif } bool IsHardwareDecoded() const {