[vlc-commits] libass: fix variable shadowing

Rémi Denis-Courmont git at videolan.org
Thu Jun 29 22:35:15 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 29 22:58:59 2017 +0300| [7db90c26fe1822af45acbfe1da104ae0e26a2c16] | committer: Rémi Denis-Courmont

libass: fix variable shadowing

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

 modules/codec/libass.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index de53a618ef..2875e76e6c 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -622,9 +622,9 @@ static int BuildRegions( rectangle_t *p_region, int i_max_region, ASS_Image *p_i
             {
                 for( int j = i+1; j < i_region; j++ )
                 {
-                    rectangle_t n = region[i];
-                    r_add( &n, &region[j] );
-                    int ds = r_surface( &n ) - r_surface( &region[i] ) - r_surface( &region[j] );
+                    rectangle_t rect = region[i];
+                    r_add( &rect, &region[j] );
+                    int ds = r_surface( &rect ) - r_surface( &region[i] ) - r_surface( &region[j] );
 
                     if( ds < i_best_ds )
                     {



More information about the vlc-commits mailing list