summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-08-29 15:27:22 +0200
committerGitHub <noreply@github.com>2023-08-29 15:27:22 +0200
commitd360abadba9b8d3c1748f1e55ea3421cd1be4a53 (patch)
tree5901b223c88ae9d9fe92672a4dbf6188968f84ed /src
parentMerge pull request #11392 from t895/layout-troubles (diff)
parentUse initial_frame to check interlaced flag (diff)
downloadyuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.tar
yuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.tar.gz
yuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.tar.bz2
yuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.tar.lz
yuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.tar.xz
yuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.tar.zst
yuzu-d360abadba9b8d3c1748f1e55ea3421cd1be4a53.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/host1x/codecs/codec.cpp3
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) {