aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-09-05 16:18:30 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-09-05 16:18:30 -0700
commit7bad5e30a928e81db7537f281c43d30726cb47c1 (patch)
tree3c198e6c6a9cca9aebaab70852dd1eb64fadc7ca
parent9b5f55b2369d4cc19ef8038c752716d40ba77961 (diff)
downloadsyslinux-7bad5e30a928e81db7537f281c43d30726cb47c1.tar.gz
syslinux-7bad5e30a928e81db7537f281c43d30726cb47c1.tar.xz
syslinux-7bad5e30a928e81db7537f281c43d30726cb47c1.zip
Correct the memory layout for the BGRA32 color space
-rw-r--r--com32/lib/jpeg/bgra32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/jpeg/bgra32.c b/com32/lib/jpeg/bgra32.c
index d6f97915..ba0db700 100644
--- a/com32/lib/jpeg/bgra32.c
+++ b/com32/lib/jpeg/bgra32.c
@@ -355,9 +355,9 @@ static int initialize_bgra32(struct jdec_private *priv,
unsigned int *bytes_per_mcu)
{
if (priv->components[0] == NULL)
- priv->components[0] = (uint8_t *)malloc(priv->width * priv->height * 3);
- bytes_per_blocklines[0] = priv->width * 3;
- bytes_per_mcu[0] = 3*8;
+ priv->components[0] = (uint8_t *)malloc(priv->width * priv->height * 4);
+ bytes_per_blocklines[0] = priv->width * 4;
+ bytes_per_mcu[0] = 4*8;
return !priv->components[0];
}