red_worker: no need to align the stride of internal images

Internal images are just read from the surface, compressed, and sent to the client.
Then, they are destroyed. I can't find any reason for aligning their memory.
This commit is contained in:
Yonit Halperin 2012-11-28 14:07:38 -05:00
parent 1e6f872066
commit 7f220304db

View File

@ -5065,7 +5065,7 @@ static ImageItem *red_add_surface_area_image(DisplayChannelClient *dcc, int surf
width = area->right - area->left;
height = area->bottom - area->top;
bpp = SPICE_SURFACE_FMT_DEPTH(surface->context.format) / 8;
stride = SPICE_ALIGN(width * bpp, 4);
stride = width * bpp;
item = (ImageItem *)spice_malloc_n_m(height, stride, sizeof(ImageItem));