Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
393b3425
Commit
393b3425
authored
May 19, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting cleaning
parent
cffe2dbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
168 additions
and
165 deletions
+168
-165
modules/codec/subtitles/subsdec.c
modules/codec/subtitles/subsdec.c
+168
-165
No files found.
modules/codec/subtitles/subsdec.c
View file @
393b3425
...
...
@@ -580,8 +580,12 @@ static char *CreateHtmlSubtitle( char *psz_subtitle )
psz_tag
[
0
]
=
'\0'
;
if
(
psz_html_start
!
=
NULL
)
if
(
psz_html_start
=
=
NULL
)
{
free
(
psz_tag
);
return
NULL
;
}
char
*
psz_html
=
psz_html_start
;
strcpy
(
psz_html
,
"<text>"
);
...
...
@@ -644,7 +648,7 @@ static char *CreateHtmlSubtitle( char *psz_subtitle )
{
int
i_len
=
strlen
(
psz_attribs
[
k
]
);
if
(
!
strncasecmp
(
psz_subtitle
,
psz_attribs
[
k
],
i_len
))
if
(
!
strncasecmp
(
psz_subtitle
,
psz_attribs
[
k
],
i_len
))
{
i_len
+=
strcspn
(
psz_subtitle
+
i_len
,
"
\"
"
)
+
1
;
...
...
@@ -785,7 +789,6 @@ static char *CreateHtmlSubtitle( char *psz_subtitle )
/* Shrink the memory requirements */
psz_html_start
=
realloc
(
psz_html_start
,
psz_html
-
psz_html_start
+
1
);
}
}
free
(
psz_tag
);
return
psz_html_start
;
}
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