summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_palette.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-26 16:35:40 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-26 16:35:40 +0300
commit05ad815133fcb0ade9a1040069dedba1abf9d6f0 (patch)
treecead166eb1f9fe7f1be9c0de374e0f93f8cf2e56 /libmpcodecs/vf_palette.c
parent37e1edee352afb6d1b212403a84827aa6072943a (diff)
downloadmpv-05ad815133fcb0ade9a1040069dedba1abf9d6f0.tar.bz2
mpv-05ad815133fcb0ade9a1040069dedba1abf9d6f0.tar.xz
Mark some constant symbols as such
Diffstat (limited to 'libmpcodecs/vf_palette.c')
-rw-r--r--libmpcodecs/vf_palette.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_palette.c b/libmpcodecs/vf_palette.c
index 8b2615d000..fc56e50163 100644
--- a/libmpcodecs/vf_palette.c
+++ b/libmpcodecs/vf_palette.c
@@ -19,14 +19,14 @@
// routines are incorrrect. they assume the palette to be of the same
// depth as the output, which is incorrect. --Joey
-static unsigned int bgr_list[]={
+static const unsigned int bgr_list[]={
IMGFMT_BGR32,
IMGFMT_BGR24,
// IMGFMT_BGR16,
// IMGFMT_BGR15,
0
};
-static unsigned int rgb_list[]={
+static const unsigned int rgb_list[]={
IMGFMT_RGB32,
IMGFMT_RGB24,
// IMGFMT_RGB16,
@@ -39,7 +39,7 @@ static unsigned int gray_pal[256];
static unsigned int find_best(struct vf_instance* vf, unsigned int fmt){
unsigned int best=0;
int ret;
- unsigned int* p;
+ const unsigned int* p;
if(fmt==IMGFMT_BGR8) p=bgr_list;
else if(fmt==IMGFMT_RGB8) p=rgb_list;
else return 0;