projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5f55b
)
Correct the memory layout for the BGRA32 color space
author
H. Peter Anvin
<hpa@zytor.com>
Tue, 5 Sep 2006 23:18:30 +0000
(16:18 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Tue, 5 Sep 2006 23:18:30 +0000
(16:18 -0700)
com32/lib/jpeg/bgra32.c
patch
|
blob
|
history
diff --git
a/com32/lib/jpeg/bgra32.c
b/com32/lib/jpeg/bgra32.c
index
d6f9791
..
ba0db70
100644
(file)
--- 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];
}