aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/command_classes/vic.cpp
diff options
context:
space:
mode:
authorAmeer J <52414509+ameerj@users.noreply.github.com>2021-10-09 15:51:05 -0400
committerGitHub <noreply@github.com>2021-10-09 15:51:05 -0400
commitfc05abc48b746d08953d2a7aad0329e149675f75 (patch)
treece51ce11125fd81b08fa8207e4546ea93cfec98d /src/video_core/command_classes/vic.cpp
parentdddf5128c62a57e649fa18e872a4a755da8669f5 (diff)
parentebf2ab5afbaee47b120462d0b183f440ef213473 (diff)
Merge pull request #7152 from v1993/patch-6
vic: Allow surface to be higher than frame
Diffstat (limited to 'src/video_core/command_classes/vic.cpp')
-rw-r--r--src/video_core/command_classes/vic.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp
index 51f739801a..dc768b9521 100644
--- a/src/video_core/command_classes/vic.cpp
+++ b/src/video_core/command_classes/vic.cpp
@@ -88,9 +88,10 @@ void Vic::Execute() {
const u64 surface_width = config.surface_width_minus1 + 1;
const u64 surface_height = config.surface_height_minus1 + 1;
if (static_cast<u64>(frame->width) != surface_width ||
- static_cast<u64>(frame->height) != surface_height) {
+ static_cast<u64>(frame->height) > surface_height) {
// TODO: Properly support multiple video streams with differing frame dimensions
- LOG_WARNING(Debug, "Frame dimensions {}x{} do not match expected surface dimensions {}x{}",
+ LOG_WARNING(Debug,
+ "Frame dimensions {}x{} can't be safely decoded into surface dimensions {}x{}",
frame->width, frame->height, surface_width, surface_height);
return;
}