[vlc-commits] codec: substx3g: rename parameter

Francois Cartegnie git at videolan.org
Tue Jan 2 17:19:00 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan  2 15:02:45 2018 +0100| [5c5251652c66a223e60a76d81a09dc7e04a7d9ac] | committer: Francois Cartegnie

codec: substx3g: rename parameter

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

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

diff --git a/modules/codec/substx3g.c b/modules/codec/substx3g.c
index f273115c77..b0cf28ee0a 100644
--- a/modules/codec/substx3g.c
+++ b/modules/codec/substx3g.c
@@ -278,20 +278,20 @@ static void ApplySegmentStyle( tx3g_segment_t **pp_segment, const uint16_t i_abs
 
 /* Do relative size conversion using default style size (from stsd),
    as the line should always be 5%. Apply to each segment specific text size */
-static void FontSizeConvert( const text_style_t *p_default_style, text_style_t *p_style )
+static void FontSizeConvert( const text_style_t *p_reference, text_style_t *p_style )
 {
     if( unlikely(!p_style) )
     {
         return;
     }
-    else if( unlikely(!p_default_style) || p_default_style->i_font_size == 0 )
+    else if( unlikely(!p_reference) || p_reference->i_font_size == 0 )
     {
         p_style->i_font_size = 0;
         p_style->f_font_relsize = 5.0;
     }
     else
     {
-        p_style->f_font_relsize = 5.0 * (float) p_style->i_font_size / p_default_style->i_font_size;
+        p_style->f_font_relsize = 5.0 * (float) p_style->i_font_size / p_reference->i_font_size;
         p_style->i_font_size = 0;
     }
 }



More information about the vlc-commits mailing list