diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-05-01 20:15:21 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-05-01 20:15:21 +0000 |
commit | cc8b6a93a43f2d5c6e93b7980d4eba1739ff87bc (patch) | |
tree | 51df4188a8a5dc1bb2ba79f1bdc64f243615bbaf /postproc/rgb2rgb_template.c | |
parent | 6a3e54b5f1dbfc815f7adc723fa82be9c763855f (diff) | |
download | mpv-cc8b6a93a43f2d5c6e93b7980d4eba1739ff87bc.tar.bz2 mpv-cc8b6a93a43f2d5c6e93b7980d4eba1739ff87bc.tar.xz |
this isn't actually stupid, but it's not valid C and gcc 3.5 rejects it as such
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12386 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/rgb2rgb_template.c')
-rw-r--r-- | postproc/rgb2rgb_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/postproc/rgb2rgb_template.c b/postproc/rgb2rgb_template.c index eda2ccc83a..d051215e75 100644 --- a/postproc/rgb2rgb_template.c +++ b/postproc/rgb2rgb_template.c @@ -388,7 +388,7 @@ static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned #endif while(s < end) { - const int src= *((uint32_t*)s)++; + const int src= *s; s += 4; *d++ = ((src&0xFF)>>3) + ((src&0xFC00)>>5) + ((src&0xF80000)>>8); // *d++ = ((src>>3)&0x1F) + ((src>>5)&0x7E0) + ((src>>8)&0xF800); } @@ -450,7 +450,7 @@ static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsign #endif while(s < end) { - const int src= *((uint32_t*)s)++; + const int src= *s; s += 4; *d++ = ((src&0xF8)<<8) + ((src&0xFC00)>>5) + ((src&0xF80000)>>19); } } @@ -546,7 +546,7 @@ static inline void RENAME(rgb32to15)(const uint8_t *src, uint8_t *dst, unsigned #endif while(s < end) { - const int src= *((uint32_t*)s)++; + const int src= *s; s += 4; *d++ = ((src&0xFF)>>3) + ((src&0xF800)>>6) + ((src&0xF80000)>>9); } } @@ -607,7 +607,7 @@ static inline void RENAME(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, unsign #endif while(s < end) { - const int src= *((uint32_t*)s)++; + const int src= *s; s += 4; *d++ = ((src&0xF8)<<7) + ((src&0xF800)>>6) + ((src&0xF80000)>>19); } } |