summaryrefslogtreecommitdiffstats
path: root/postproc/rgb2rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'postproc/rgb2rgb.c')
-rw-r--r--postproc/rgb2rgb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/postproc/rgb2rgb.c b/postproc/rgb2rgb.c
index df8c8c47fc..5c85f1043a 100644
--- a/postproc/rgb2rgb.c
+++ b/postproc/rgb2rgb.c
@@ -7,16 +7,16 @@
void rgb24to32(uint8_t *src,uint8_t *dst,uint32_t src_size)
{
- uint32_t *dest = (uint32_t *)dst;
+ uint8_t *dest = dst;
uint8_t *s = src;
uint8_t *end;
end = s + src_size;
while(s < end)
{
- uint32_t rgb0;
- rgb0 = *(uint32_t *)s;
- *dest++ = rgb0 & 0xFFFFFFUL;
- s += 3;
+ *dest++ = *s++;
+ *dest++ = *s++;
+ *dest++ = *s++;
+ *dest++ = 0;
}
}