diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-12-06 03:08:56 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-06 03:10:38 +0100 |
commit | 4cd3f9f4f9cd17f92762fa41cec69074f7000ac0 (patch) | |
tree | 0ea4b9f085bbf6166a97e1ae16951a4d39b723a9 | |
parent | Merge pull request #12235 from liamwhite/flip-clip (diff) | |
download | yuzu-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.cpp | 7 |
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; }; |