[vlc-commits] hqdn3d: fix variable shadowing

Rémi Denis-Courmont git at videolan.org
Sun Mar 3 16:52:30 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  3 17:22:10 2019 +0200| [cb45e965500b6d52f2b655cf9a6b6c5fc16d6cdb] | committer: Rémi Denis-Courmont

hqdn3d: fix variable shadowing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb45e965500b6d52f2b655cf9a6b6c5fc16d6cdb
---

 modules/video_filter/hqdn3d.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/video_filter/hqdn3d.h b/modules/video_filter/hqdn3d.h
index c9b9beaa4f..9bc082af81 100644
--- a/modules/video_filter/hqdn3d.h
+++ b/modules/video_filter/hqdn3d.h
@@ -89,7 +89,6 @@ static void deNoiseSpacial(
     }
 
     for (long Y = 1; Y < H; Y++){
-        unsigned int PixelAnt;
         sLineOffs += sStride, dLineOffs += dStride;
         /* First pixel on each line doesn't have previous pixel */
         PixelAnt = Frame[sLineOffs]<<16;
@@ -97,7 +96,6 @@ static void deNoiseSpacial(
         FrameDest[dLineOffs]= ((PixelDst+0x10007FFF)>>16);
 
         for (long X = 1; X < W; X++){
-            unsigned int PixelDst;
             /* The rest are normal */
             PixelAnt = LowPassMul(PixelAnt, Frame[sLineOffs+X]<<16, Horizontal);
             PixelDst = LineAnt[X] = LowPassMul(LineAnt[X], PixelAnt, Vertical);
@@ -156,7 +154,6 @@ static void deNoise(unsigned char *Frame,        // mpi->planes[x]
     }
 
     for (long Y = 1; Y < H; Y++){
-        unsigned int PixelAnt;
         unsigned short* LinePrev=&FrameAnt[Y*W];
         sLineOffs += sStride, dLineOffs += dStride;
         /* First pixel on each line doesn't have previous pixel */
@@ -167,7 +164,6 @@ static void deNoise(unsigned char *Frame,        // mpi->planes[x]
         FrameDest[dLineOffs]= ((PixelDst+0x10007FFF)>>16);
 
         for (long X = 1; X < W; X++){
-            unsigned int PixelDst;
             /* The rest are normal */
             PixelAnt = LowPassMul(PixelAnt, Frame[sLineOffs+X]<<16, Horizontal);
             LineAnt[X] = LowPassMul(LineAnt[X], PixelAnt, Vertical);



More information about the vlc-commits mailing list