diff options
author | Danila Malyutin <d.maljutin@yandex.ru> | 2023-07-18 01:01:49 +0200 |
---|---|---|
committer | Danila Malyutin <danilaml@users.noreply.github.com> | 2023-08-27 22:48:53 +0200 |
commit | 164f880f2385c8c7e3498286eebb9ef4782674c3 (patch) | |
tree | 7c43786b3b2716f780d5717b64734797f4261c87 /src/video_core | |
parent | Merge pull request #11389 from FernandoS27/discard-fix (diff) | |
download | yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.tar yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.tar.gz yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.tar.bz2 yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.tar.lz yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.tar.xz yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.tar.zst yuzu-164f880f2385c8c7e3498286eebb9ef4782674c3.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/host1x/codecs/codec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/host1x/codecs/codec.cpp b/src/video_core/host1x/codecs/codec.cpp index 220cce28a..8d7da50fc 100644 --- a/src/video_core/host1x/codecs/codec.cpp +++ b/src/video_core/host1x/codecs/codec.cpp @@ -319,6 +319,7 @@ void Codec::Decode() { LOG_WARNING(Service_NVDRV, "Zero width or height in frame"); return; } + bool is_interlaced = initial_frame->interlaced_frame != 0; if (av_codec_ctx->hw_device_ctx) { final_frame = AVFramePtr{av_frame_alloc(), AVFrameDeleter}; ASSERT_MSG(final_frame, "av_frame_alloc final_frame failed"); @@ -334,7 +335,7 @@ void Codec::Decode() { UNIMPLEMENTED_MSG("Unexpected video format: {}", final_frame->format); return; } - if (!final_frame->interlaced_frame) { + if (!is_interlaced) { av_frames.push(std::move(final_frame)); } else { if (!filters_initialized) { |