Commit 72d6b610 authored by Baptiste Coudurier's avatar Baptiste Coudurier

remove useless casts

Originally committed as revision 26944 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent 774c386a
...@@ -372,7 +372,7 @@ void rgb24tobgr32(const uint8_t *src, uint8_t *dst, long src_size) ...@@ -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) void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{ {
const uint16_t *end; const uint16_t *end;
uint8_t *d = (uint8_t *)dst; uint8_t *d = dst;
const uint16_t *s = (const uint16_t *)src; const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2; end = s + src_size/2;
while (s < end) while (s < end)
...@@ -396,7 +396,7 @@ void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size) ...@@ -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) void rgb16tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
{ {
const uint16_t *end; const uint16_t *end;
uint8_t *d = (uint8_t *)dst; uint8_t *d = dst;
const uint16_t *s = (const uint16_t *)src; const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2; end = s + src_size/2;
while (s < end) while (s < end)
...@@ -446,7 +446,7 @@ void rgb16tobgr15(const uint8_t *src, uint8_t *dst, long src_size) ...@@ -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) void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{ {
const uint16_t *end; const uint16_t *end;
uint8_t *d = (uint8_t *)dst; uint8_t *d = dst;
const uint16_t *s = (const uint16_t *)src; const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2; end = s + src_size/2;
while (s < end) while (s < end)
...@@ -470,7 +470,7 @@ void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size) ...@@ -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) void rgb15tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
{ {
const uint16_t *end; const uint16_t *end;
uint8_t *d = (uint8_t *)dst; uint8_t *d = dst;
const uint16_t *s = (const uint16_t *)src; const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2; end = s + src_size/2;
while (s < end) while (s < end)
......
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