summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorbcoudurier <bcoudurier@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-01 19:08:16 +0000
committerbcoudurier <bcoudurier@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-01 19:08:16 +0000
commit38ce550b2150800caea891a777a2876216b8bd14 (patch)
treeac5d9d38ca7daf863d1d25793a0e02157ea96f5b /libswscale
parent9c6a2cb7401cca3c1f9a7b5857f81f5703b2df5a (diff)
downloadmpv-38ce550b2150800caea891a777a2876216b8bd14.tar.bz2
mpv-38ce550b2150800caea891a777a2876216b8bd14.tar.xz
restore needed cast to correct type with const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26957 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/rgb2rgb_template.c4
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;