diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-22 14:03:46 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-22 14:03:46 +0000 |
commit | b2172f784daaef5d562e497dfd36c73f6696f908 (patch) | |
tree | 04ca6c402bf050065b4af36c3f317bf0268ca2dc /libmpcodecs/vf_palette.c | |
parent | 50e3d811dbbf1fae0562821dc63fa2b8e4ff6b4e (diff) | |
download | mpv-b2172f784daaef5d562e497dfd36c73f6696f908.tar.bz2 mpv-b2172f784daaef5d562e497dfd36c73f6696f908.tar.xz |
Mark a bunch of video filter structures as const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30704 b3059339-0415-0410-9bf9-f77b7e298cf2
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 0d306711a6..cef47df788 100644 --- a/libmpcodecs/vf_palette.c +++ b/libmpcodecs/vf_palette.c @@ -37,14 +37,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, @@ -57,7 +57,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; |