[vlc-commits] Subsdec: fix small parsing issue

Jean-Baptiste Kempf git at videolan.org
Sun Apr 7 16:38:02 CEST 2013


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr  7 16:35:14 2013 +0200| [f3dde8da28820617183cd514afd15dce231e0c3f] | committer: Jean-Baptiste Kempf

Subsdec: fix small parsing issue

Close #8392
(cherry picked from commit 66ffb52c7a485e3594867351a7efa9199129793d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/subsdec.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index ed4d1f7..241340f 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -671,14 +671,14 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
                 HtmlCopy( &psz_html, &psz_subtitle, "<font " );
                 HtmlPut( &psz_tag, "f" );
 
-                /* <font       color= */
-                while (*psz_subtitle == ' ')
-                    psz_subtitle++;
-
                 while( *psz_subtitle != '>' )
                 {
                     int  k;
 
+                    /* <font       color= */
+                    while (*psz_subtitle == ' ')
+                        psz_subtitle++;
+
                     for( k=0; psz_attribs[ k ]; k++ )
                     {
                         int i_len = strlen( psz_attribs[ k ] );



More information about the vlc-commits mailing list