[vlc-commits] deinterlace/phosphor: fix variable shadowing

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


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

deinterlace/phosphor: fix variable shadowing

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

 modules/video_filter/deinterlace/algo_phosphor.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_filter/deinterlace/algo_phosphor.c b/modules/video_filter/deinterlace/algo_phosphor.c
index d60ee73bca..289eed783b 100644
--- a/modules/video_filter/deinterlace/algo_phosphor.c
+++ b/modules/video_filter/deinterlace/algo_phosphor.c
@@ -128,7 +128,7 @@ static void DarkenField( picture_t *p_dst,
              i_plane < p_dst->i_planes;
              i_plane++ )
         {
-            int w = p_dst->p[i_plane].i_visible_pitch;
+            w = p_dst->p[i_plane].i_visible_pitch;
             p_out = p_dst->p[i_plane].p_pixels;
             p_out_end = p_out + p_dst->p[i_plane].i_pitch
                               * p_dst->p[i_plane].i_visible_lines;
@@ -211,9 +211,9 @@ static void DarkenFieldMMX( picture_t *p_dst,
              i_plane < p_dst->i_planes;
              i_plane++ )
         {
-            int w = p_dst->p[i_plane].i_visible_pitch;
-            int wm8 = w % 8;   /* remainder */
-            int w8  = w - wm8; /* part of width that is divisible by 8 */
+            w = p_dst->p[i_plane].i_visible_pitch;
+            wm8 = w % 8;   /* remainder */
+            w8  = w - wm8; /* part of width that is divisible by 8 */
 
             p_out = p_dst->p[i_plane].p_pixels;
             p_out_end = p_out + p_dst->p[i_plane].i_pitch



More information about the vlc-commits mailing list