diff options
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/command_classes/vic.cpp | 5 |
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 51f739801..dc768b952 100644 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp | |||
| @@ -88,9 +88,10 @@ void Vic::Execute() { | |||
| 88 | const u64 surface_width = config.surface_width_minus1 + 1; | 88 | const u64 surface_width = config.surface_width_minus1 + 1; |
| 89 | const u64 surface_height = config.surface_height_minus1 + 1; | 89 | const u64 surface_height = config.surface_height_minus1 + 1; |
| 90 | if (static_cast<u64>(frame->width) != surface_width || | 90 | if (static_cast<u64>(frame->width) != surface_width || |
| 91 | static_cast<u64>(frame->height) != surface_height) { | 91 | static_cast<u64>(frame->height) > surface_height) { |
| 92 | // TODO: Properly support multiple video streams with differing frame dimensions | 92 | // TODO: Properly support multiple video streams with differing frame dimensions |
| 93 | LOG_WARNING(Debug, "Frame dimensions {}x{} do not match expected surface dimensions {}x{}", | 93 | LOG_WARNING(Debug, |
| 94 | "Frame dimensions {}x{} can't be safely decoded into surface dimensions {}x{}", | ||
| 94 | frame->width, frame->height, surface_width, surface_height); | 95 | frame->width, frame->height, surface_width, surface_height); |
| 95 | return; | 96 | return; |
| 96 | } | 97 | } |