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
bb010625
Commit
bb010625
authored
Feb 11, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix a \n bug and a memory bug in the SSA/subsdec.
parent
7e6fdd0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/codec/subsdec.c
modules/codec/subsdec.c
+2
-2
No files found.
modules/codec/subsdec.c
View file @
bb010625
...
@@ -183,7 +183,7 @@ static int OpenDecoder( vlc_object_t *p_this )
...
@@ -183,7 +183,7 @@ static int OpenDecoder( vlc_object_t *p_this )
char
*
psz_charset
=
(
char
*
)
malloc
(
100
);
char
*
psz_charset
=
(
char
*
)
malloc
(
100
);
#ifdef __APPLE__
#ifdef __APPLE__
/* Most subtitles are not in UTF-8, which is the default on Mac OS X */
/* Most subtitles are not in UTF-8, which is the default on Mac OS X */
psz_charset
=
"ISO-8859-1"
;
sprintf
(
psz_charset
,
"ISO-8859-1"
)
;
#else
#else
vlc_current_charset
(
&
psz_charset
);
vlc_current_charset
(
&
psz_charset
);
#endif
#endif
...
@@ -424,7 +424,7 @@ static void ParseSSAString( decoder_t *p_dec, char *psz_subtitle, subpicture_t *
...
@@ -424,7 +424,7 @@ static void ParseSSAString( decoder_t *p_dec, char *psz_subtitle, subpicture_t *
i_text
=
0
;
i_text
=
0
;
while
(
psz_buffer_sub
[
0
]
!=
'\0'
)
while
(
psz_buffer_sub
[
0
]
!=
'\0'
)
{
{
if
(
psz_buffer_sub
[
0
]
==
'\\'
&&
psz_buffer_sub
[
0
]
==
'n'
)
if
(
psz_buffer_sub
[
0
]
==
'\\'
&&
psz_buffer_sub
[
1
]
==
'n'
)
{
{
psz_new_subtitle
[
i_text
]
=
' '
;
psz_new_subtitle
[
i_text
]
=
' '
;
i_text
++
;
i_text
++
;
...
...
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