Mercurial > mplayer.hg
changeset 32136:effad4f941ff
Mark srcArray as const pointer to const data, fixes the warnings:
libmpcodecs/vf_sab.c:183: warning: passing argument 2 of 'sws_scale' from incompatible pointer type
libmpcodecs/vf_smartblur.c:134: warning: passing argument 2 of 'sws_scale' from incompatible pointer type
author | diego |
---|---|
date | Mon, 13 Sep 2010 12:14:43 +0000 |
parents | 1e86e91fec5d |
children | b7d5e57af959 |
files | libmpcodecs/vf_sab.c libmpcodecs/vf_smartblur.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_sab.c Mon Sep 13 03:56:24 2010 +0000 +++ b/libmpcodecs/vf_sab.c Mon Sep 13 12:14:43 2010 +0000 @@ -174,7 +174,7 @@ int x, y; FilterParam f= *fp; const int radius= f.distWidth/2; - uint8_t *srcArray[MP_MAX_PLANES]= {src}; + const uint8_t* const srcArray[MP_MAX_PLANES] = {src}; uint8_t *dstArray[MP_MAX_PLANES]= {f.preFilterBuf}; int srcStrideArray[MP_MAX_PLANES]= {srcStride}; int dstStrideArray[MP_MAX_PLANES]= {f.preFilterStride};
--- a/libmpcodecs/vf_smartblur.c Mon Sep 13 03:56:24 2010 +0000 +++ b/libmpcodecs/vf_smartblur.c Mon Sep 13 12:14:43 2010 +0000 @@ -126,7 +126,7 @@ static inline void blur(uint8_t *dst, uint8_t *src, int w, int h, int dstStride, int srcStride, FilterParam *fp){ int x, y; FilterParam f= *fp; - uint8_t *srcArray[MP_MAX_PLANES]= {src}; + const uint8_t* const srcArray[MP_MAX_PLANES] = {src}; uint8_t *dstArray[MP_MAX_PLANES]= {dst}; int srcStrideArray[MP_MAX_PLANES]= {srcStride}; int dstStrideArray[MP_MAX_PLANES]= {dstStride};