diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-26 16:35:40 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-26 16:35:40 +0300 |
commit | 05ad815133fcb0ade9a1040069dedba1abf9d6f0 (patch) | |
tree | cead166eb1f9fe7f1be9c0de374e0f93f8cf2e56 /libmpcodecs/vf_palette.c | |
parent | 37e1edee352afb6d1b212403a84827aa6072943a (diff) | |
download | mpv-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.c | 6 |
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; |