diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-01 19:08:16 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-01 19:08:16 +0000 |
commit | ce3d365f2f9e554ba12569553a796b3f492d0de5 (patch) | |
tree | c52d96ec029903aa3a4209b2a52f18c22855dc60 /libswscale | |
parent | 437fd77b055059f3bbf407d364dd319880b7141e (diff) | |
download | ffmpeg-ce3d365f2f9e554ba12569553a796b3f492d0de5.tar.gz |
restore needed cast to correct type with const
Originally committed as revision 26957 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/rgb2rgb_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c index bdd0ab9883..3fb04c9c91 100644 --- a/libswscale/rgb2rgb_template.c +++ b/libswscale/rgb2rgb_template.c @@ -325,14 +325,14 @@ static inline void RENAME(rgb16to15)(const uint8_t *src, uint8_t *dst, long src_ mm_end = end - 3; while (s < mm_end) { - register uint32_t x= *s; + register uint32_t x= *((const uint32_t*)s); *((uint32_t *)d) = ((x>>1)&0x7FE07FE0) | (x&0x001F001F); s+=4; d+=4; } if (s < end) { - register uint16_t x= *s; + register uint16_t x= *((const uint16_t*)s); *((uint16_t *)d) = ((x>>1)&0x7FE0) | (x&0x001F); s+=2; d+=2; |