diff options
Diffstat (limited to 'libmpcodecs/vf_1bpp.c')
-rw-r--r-- | libmpcodecs/vf_1bpp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/vf_1bpp.c b/libmpcodecs/vf_1bpp.c index d0e4ffd007..873e431855 100644 --- a/libmpcodecs/vf_1bpp.c +++ b/libmpcodecs/vf_1bpp.c @@ -12,7 +12,7 @@ //===========================================================================// -static unsigned int bgr_list[]={ +static const unsigned int bgr_list[]={ IMGFMT_Y800, IMGFMT_Y8, IMGFMT_BGR8, @@ -43,7 +43,7 @@ static unsigned int bgr_list[]={ static unsigned int find_best(struct vf_instance_s* vf){ unsigned int best=0; int ret; - unsigned int* p=bgr_list; + const unsigned int* p=bgr_list; while(*p){ ret=vf->next->query_format(vf->next,*p); mp_msg(MSGT_VFILTER,MSGL_V,"[%s] query(%s) -> %d\n",vf->info->name,vo_format_name(*p),ret&3); @@ -74,7 +74,7 @@ static int config(struct vf_instance_s* vf, return vf_next_config(vf,width,height,d_width,d_height,flags,vf->priv->fmt); } -static int bittab[8]={128,64,32,16,8,4,2,1}; +static const int bittab[8]={128,64,32,16,8,4,2,1}; static void convert(mp_image_t *mpi, mp_image_t *dmpi, int value0, int value1,int bpp){ int y; @@ -171,7 +171,7 @@ static int open(vf_instance_t *vf, char* args){ return 1; } -vf_info_t vf_info_1bpp = { +const vf_info_t vf_info_1bpp = { "1bpp bitmap -> YUV/BGR 8/15/16/32 conversion", "1bpp", "A'rpi", |