mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-09 21:51:45 +00:00
jpegdec: fix abort check on output width
This commit is contained in:
parent
a84f725e21
commit
3f19db0d96
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ namespace ams::capsrv::server::jpeg {
|
||||||
|
|
||||||
const u32 shrunk_width = input.width / 2;
|
const u32 shrunk_width = input.width / 2;
|
||||||
const u32 shrunk_height = input.height / 2;
|
const u32 shrunk_height = input.height / 2;
|
||||||
CAPSRV_ABORT_UNLESS(util::IsAligned(input.width, ImageSizeHorizonalUnit));
|
CAPSRV_ABORT_UNLESS(util::IsAligned(shrunk_width, ImageSizeHorizonalUnit));
|
||||||
|
|
||||||
CAPSRV_ABORT_UNLESS(output.dst != nullptr);
|
CAPSRV_ABORT_UNLESS(output.dst != nullptr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue