diff options
author | Valeri <v19930312@gmail.com> | 2021-10-09 19:13:45 +0200 |
---|---|---|
committer | v1993 <v19930312@gmail.com> | 2021-10-09 19:22:09 +0200 |
commit | 0394e4bb8ee35981ad1a39818e21ba23faf80db6 (patch) | |
tree | ce51ce11125fd81b08fa8207e4546ea93cfec98d /src/video_core | |
parent | Merge pull request #7138 from ameerj/vic-fmt (diff) | |
download | yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.tar yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.tar.gz yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.tar.bz2 yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.tar.lz yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.tar.xz yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.tar.zst yuzu-0394e4bb8ee35981ad1a39818e21ba23faf80db6.zip |
Diffstat (limited to 'src/video_core')
-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() { 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; } |