aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/rgb2rgb.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-01 03:23:50 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-01 03:23:50 +0000
commit774c386a101f1e561dfee18c9ad4e8de50d5d0e9 (patch)
tree69247c321c3bc527f1f844de7c32c51dd2920368 /libswscale/rgb2rgb.c
parent994c1ef01416dd24bf0a37642e41d53bda24065b (diff)
downloadffmpeg-774c386a101f1e561dfee18c9ad4e8de50d5d0e9.tar.gz
add const, suppress warnings
Originally committed as revision 26943 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r--libswscale/rgb2rgb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index 19487d731d..2489746cb6 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -305,13 +305,13 @@ void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui
{
long i;
for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = ((uint16_t *)palette)[src[i]];
+ ((uint16_t *)dst)[i] = ((const uint16_t *)palette)[src[i]];
}
void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
{
long i;
for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[src[i]]);
+ ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
}
/**
@@ -321,13 +321,13 @@ void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const ui
{
long i;
for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = ((uint16_t *)palette)[src[i]];
+ ((uint16_t *)dst)[i] = ((const uint16_t *)palette)[src[i]];
}
void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
{
long i;
for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[src[i]]);
+ ((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
}
void rgb32tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
@@ -373,7 +373,7 @@ void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *end;
uint8_t *d = (uint8_t *)dst;
- const uint16_t *s = (uint16_t *)src;
+ const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
while (s < end)
{
@@ -471,7 +471,7 @@ void rgb15tobgr24(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *end;
uint8_t *d = (uint8_t *)dst;
- const uint16_t *s = (uint16_t *)src;
+ const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
while (s < end)
{