mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-11 11:26:33 +00:00
server/red_parse_qxl: fix bitmap_consistent again
This commit is contained in:
parent
5819976c7e
commit
5579d8721b
@ -352,8 +352,8 @@ static int bitmap_consistent(SpiceBitmap *bitmap)
|
||||
{
|
||||
int bpp = MAP_BITMAP_FMT_TO_BITS_PER_PIXEL[bitmap->format];
|
||||
|
||||
if (bitmap->stride < bitmap->x * ((bpp + 7) / 8)) {
|
||||
spice_error("image stride too small for width: %d < %d * (%d + 7) / 8 (%s=%d)\n",
|
||||
if (bitmap->stride < ((bitmap->x * bpp + 7) / 8)) {
|
||||
spice_error("image stride too small for width: %d < ((%d * %d + 7) / 8) (%s=%d)\n",
|
||||
bitmap->stride, bitmap->x, bpp,
|
||||
bitmap_format_to_string(bitmap->format),
|
||||
bitmap->format);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user