summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-08 05:13:13 +0100
committerGitHub <noreply@github.com>2023-12-08 05:13:13 +0100
commit7761f298922e3f79c0edca53649b9576c1f42c33 (patch)
treedcfd1994006b843f7abb918c458354c9c6bf2e5f /src
parentdist: add udev rule to enable user hidraw access (#12292) (diff)
parentcodec: Update to use av frame flags (diff)
downloadyuzu-7761f298922e3f79c0edca53649b9576c1f42c33.tar
yuzu-7761f298922e3f79c0edca53649b9576c1f42c33.tar.gz
yuzu-7761f298922e3f79c0edca53649b9576c1f42c33.tar.bz2
yuzu-7761f298922e3f79c0edca53649b9576c1f42c33.tar.lz
yuzu-7761f298922e3f79c0edca53649b9576c1f42c33.tar.xz
yuzu-7761f298922e3f79c0edca53649b9576c1f42c33.tar.zst
yuzu-7761f298922e3f79c0edca53649b9576c1f42c33.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/host1x/ffmpeg/ffmpeg.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/host1x/ffmpeg/ffmpeg.cpp b/src/video_core/host1x/ffmpeg/ffmpeg.cpp
index dcd07e6d2..96686da59 100644
--- a/src/video_core/host1x/ffmpeg/ffmpeg.cpp
+++ b/src/video_core/host1x/ffmpeg/ffmpeg.cpp
@@ -233,7 +233,12 @@ std::unique_ptr<Frame> DecoderContext::ReceiveFrame(bool* out_is_interlaced) {
return false;
}
- *out_is_interlaced = frame->interlaced_frame != 0;
+ *out_is_interlaced =
+#if defined(FF_API_INTERLACED_FRAME) || LIBAVUTIL_VERSION_MAJOR >= 59
+ (frame->flags & AV_FRAME_FLAG_INTERLACED) != 0;
+#else
+ frame->interlaced_frame != 0;
+#endif
return true;
};