Contents of /trunk/libmpeg3/patches/libmpeg3-1.7-gcc4.patch
Parent Directory | Revision Log
Revision 224 -
(show annotations)
(download)
Sat Jun 23 13:53:28 2007 UTC (17 years, 3 months ago) by niro
File size: 738 byte(s)
Sat Jun 23 13:53:28 2007 UTC (17 years, 3 months ago) by niro
File size: 738 byte(s)
-new fixes
1 | diff -Naur libmpeg3-1.7-orig/video/output.c libmpeg3-1.7/video/output.c |
2 | --- libmpeg3-1.7-orig/video/output.c 2006-07-15 21:23:48.000000000 -0600 |
3 | +++ libmpeg3-1.7/video/output.c 2006-07-15 21:26:14.000000000 -0600 |
4 | @@ -104,12 +104,15 @@ |
5 | *data++ = 0; |
6 | |
7 | #define STORE_PIXEL_RGB565 \ |
8 | - *((unsigned short*)data) = \ |
9 | - ((CLIP(r_l) & 0xf8) << 8) | \ |
10 | - ((CLIP(g_l) & 0xfc) << 3) | \ |
11 | - ((CLIP(b_l) & 0xf8) >> 3); \ |
12 | - data += 2; |
13 | - |
14 | +{ \ |
15 | + unsigned short *_data = (unsigned short *)data; \ |
16 | + *_data = \ |
17 | + ((CLIP(r_l) & 0xf8) << 8) | \ |
18 | + ((CLIP(g_l) & 0xfc) << 3) | \ |
19 | + ((CLIP(b_l) & 0xf8) >> 3); \ |
20 | + data += sizeof(unsigned short); \ |
21 | +} |
22 | + |
23 | #define STORE_PIXEL_RGB888 \ |
24 | *data++ = CLIP(r_l); \ |
25 | *data++ = CLIP(g_l); \ |