diff options
author | wm4 <wm4@nowhere> | 2013-11-01 17:33:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-01 17:35:38 +0100 |
commit | e0b6fdeb8d9a54c357ff9fbf552e1ff4b6282282 (patch) | |
tree | 34e5fda2e7e7d2d16dfa41c749f98bcad323f4da /video/filter/vf_noise.c | |
parent | 4b6c00c50ad7739c024662be0321eef8015b5829 (diff) | |
download | mpv-e0b6fdeb8d9a54c357ff9fbf552e1ff4b6282282.tar.bz2 mpv-e0b6fdeb8d9a54c357ff9fbf552e1ff4b6282282.tar.xz |
Fix some more -Wshadow warnings
These aren't printed with newer gcc or clang versions for some reason.
All of them seem to be about local variables shadowing global functions.
Diffstat (limited to 'video/filter/vf_noise.c')
-rw-r--r-- | video/filter/vf_noise.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/filter/vf_noise.c b/video/filter/vf_noise.c index 970e762b10..c81a1d1338 100644 --- a/video/filter/vf_noise.c +++ b/video/filter/vf_noise.c @@ -268,7 +268,7 @@ static inline void lineNoiseAvg_C(uint8_t *dst, uint8_t *src, int len, int8_t ** /***************************************************************************/ -static void noise(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int width, int height, FilterParam *fp){ +static void donoise(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int width, int height, FilterParam *fp){ int8_t *noise= fp->noise; int y; int shift=0; @@ -324,9 +324,9 @@ static struct mp_image *filter(struct vf_instance *vf, struct mp_image *mpi) mp_image_copy_attributes(dmpi, mpi); } - noise(dmpi->planes[0], mpi->planes[0], dmpi->stride[0], mpi->stride[0], mpi->w, mpi->h, &vf->priv->lumaParam); - noise(dmpi->planes[1], mpi->planes[1], dmpi->stride[1], mpi->stride[1], mpi->w/2, mpi->h/2, &vf->priv->chromaParam); - noise(dmpi->planes[2], mpi->planes[2], dmpi->stride[2], mpi->stride[2], mpi->w/2, mpi->h/2, &vf->priv->chromaParam); + donoise(dmpi->planes[0], mpi->planes[0], dmpi->stride[0], mpi->stride[0], mpi->w, mpi->h, &vf->priv->lumaParam); + donoise(dmpi->planes[1], mpi->planes[1], dmpi->stride[1], mpi->stride[1], mpi->w/2, mpi->h/2, &vf->priv->chromaParam); + donoise(dmpi->planes[2], mpi->planes[2], dmpi->stride[2], mpi->stride[2], mpi->w/2, mpi->h/2, &vf->priv->chromaParam); #if HAVE_MMX if(gCpuCaps.hasMMX) __asm__ volatile ("emms\n\t"); |