Commit 19bafe19 authored by bcoudurier's avatar bcoudurier

restore needed cast to correct type with const

git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@26957 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 762c15d8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment