mirror of https://github.com/mpv-player/mpv
remove useless casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26944 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c11a96876c
commit
0c310e00b1
|
@ -372,7 +372,7 @@ void rgb24tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
|
|||
void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
|
||||
{
|
||||
const uint16_t *end;
|
||||
uint8_t *d = (uint8_t *)dst;
|
||||
uint8_t *d = dst;
|
||||
const uint16_t *s = (const uint16_t *)src;
|
||||
end = s + src_size/2;
|
||||
while (s < end)
|
||||
|
@ -396,7 +396,7 @@ void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
|
|||
void rgb16tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
|
||||
{
|
||||
const uint16_t *end;
|
||||
uint8_t *d = (uint8_t *)dst;
|
||||
uint8_t *d = dst;
|
||||
const uint16_t *s = (const uint16_t *)src;
|
||||
end = s + src_size/2;
|
||||
while (s < end)
|
||||
|
@ -446,7 +446,7 @@ void rgb16tobgr15(const uint8_t *src, uint8_t *dst, long src_size)
|
|||
void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
|
||||
{
|
||||
const uint16_t *end;
|
||||
uint8_t *d = (uint8_t *)dst;
|
||||
uint8_t *d = dst;
|
||||
const uint16_t *s = (const uint16_t *)src;
|
||||
end = s + src_size/2;
|
||||
while (s < end)
|
||||
|
@ -470,7 +470,7 @@ void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
|
|||
void rgb15tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
|
||||
{
|
||||
const uint16_t *end;
|
||||
uint8_t *d = (uint8_t *)dst;
|
||||
uint8_t *d = dst;
|
||||
const uint16_t *s = (const uint16_t *)src;
|
||||
end = s + src_size/2;
|
||||
while (s < end)
|
||||
|
|
Loading…
Reference in New Issue