[vlc-commits] Subsdec: fix small parsing issue
Jean-Baptiste Kempf
git at videolan.org
Sun Apr 7 16:36:31 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 7 16:35:14 2013 +0200| [66ffb52c7a485e3594867351a7efa9199129793d] | committer: Jean-Baptiste Kempf
Subsdec: fix small parsing issue
Close #8392
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66ffb52c7a485e3594867351a7efa9199129793d
---
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 9eff500..a9929b5 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -662,14 +662,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