summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_sab.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-09-13 12:14:43 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:16:46 +0200
commit5b87176faab756ba209dcc1055c8c8ced01aa333 (patch)
tree322948b98193a778dbf4ab5a078416a11e2620b3 /libmpcodecs/vf_sab.c
parenteb67fe1a34296454149baf34ce1364563c0d9446 (diff)
downloadmpv-5b87176faab756ba209dcc1055c8c8ced01aa333.tar.bz2
mpv-5b87176faab756ba209dcc1055c8c8ced01aa333.tar.xz
vf_sab, vf_smartblur: add "const" to match swscale API
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32220 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_sab.c')
-rw-r--r--libmpcodecs/vf_sab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vf_sab.c b/libmpcodecs/vf_sab.c
index b4a2fcbfb1..0cb4fd9b19 100644
--- a/libmpcodecs/vf_sab.c
+++ b/libmpcodecs/vf_sab.c
@@ -174,7 +174,7 @@ static inline void blur(uint8_t *dst, uint8_t *src, int w, int h, int dstStride,
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};