summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-12-06 03:08:56 +0100
committerLiam <byteslice@airmail.cc>2023-12-06 03:10:38 +0100
commit4cd3f9f4f9cd17f92762fa41cec69074f7000ac0 (patch)
tree0ea4b9f085bbf6166a97e1ae16951a4d39b723a9
parentMerge pull request #12235 from liamwhite/flip-clip (diff)
downloadyuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.tar
yuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.tar.gz
yuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.tar.bz2
yuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.tar.lz
yuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.tar.xz
yuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.tar.zst
yuzu-4cd3f9f4f9cd17f92762fa41cec69074f7000ac0.zip
-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;
};