Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
26015dac
Commit
26015dac
authored
Oct 10, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subsdec: various fixes for broken subtitles
Close #7553
parent
64e30497
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
modules/codec/subsdec.c
modules/codec/subsdec.c
+11
-2
No files found.
modules/codec/subsdec.c
View file @
26015dac
...
...
@@ -648,6 +648,10 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
HtmlCopy
(
&
psz_html
,
&
psz_subtitle
,
"<font "
);
strcat
(
psz_tag
,
"f"
);
/* <font color= */
while
(
*
psz_subtitle
==
' '
)
psz_subtitle
++
;
while
(
*
psz_subtitle
!=
'>'
)
{
int
k
;
...
...
@@ -662,6 +666,10 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
HtmlPut
(
&
psz_html
,
psz_attribs
[
k
]
);
psz_subtitle
+=
i_len
;
/* <font color= red */
while
(
*
psz_subtitle
==
' '
)
psz_subtitle
++
;
/* */
if
(
*
psz_subtitle
==
'"'
)
{
...
...
@@ -699,15 +707,16 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
}
/* Not a tag, something else we do not understand */
if
(
i_len
==
0
)
*
psz_subtitle
++
;
psz_subtitle
++
;
psz_subtitle
+=
i_len
;
}
while
(
*
psz_subtitle
==
' '
)
*
psz_html
++
=
*
psz_subtitle
++
;
}
*
psz_html
++
=
'>'
;
*
psz_subtitle
++
;
psz_subtitle
++
;
}
else
if
(
!
strncmp
(
psz_subtitle
,
"</"
,
2
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment