diff options
author | bunnei <bunneidev@gmail.com> | 2021-08-12 20:28:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 20:28:33 +0200 |
commit | 0509fe33775bfc2b0221732dfdf08860d47283fc (patch) | |
tree | bb209f2e2ff9bf530b7ab8093c9b8f3f1d0d984f /src/video_core | |
parent | Merge pull request #6855 from german77/sdl16 (diff) | |
parent | vic: Specify sws_scale height stride. (diff) | |
download | yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.tar yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.tar.gz yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.tar.bz2 yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.tar.lz yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.tar.xz yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.tar.zst yuzu-0509fe33775bfc2b0221732dfdf08860d47283fc.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/command_classes/vic.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp index d5e77941c..0ee07f398 100644 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp @@ -96,12 +96,11 @@ void Vic::Execute() { if (!converted_frame_buffer) { converted_frame_buffer = AVMallocPtr{static_cast<u8*>(av_malloc(linear_size)), av_free}; } - - const int converted_stride{frame->width * 4}; + const std::array<int, 4> converted_stride{frame->width * 4, frame->height * 4, 0, 0}; u8* const converted_frame_buf_addr{converted_frame_buffer.get()}; sws_scale(scaler_ctx, frame->data, frame->linesize, 0, frame->height, - &converted_frame_buf_addr, &converted_stride); + &converted_frame_buf_addr, converted_stride.data()); const u32 blk_kind = static_cast<u32>(config.block_linear_kind); if (blk_kind != 0) { |