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
4ee06144
Commit
4ee06144
authored
Oct 21, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert flawed [17208]. Really fix the sign comparison.
(Hint: man 3 iconv)
parent
21154aab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/demux/nsc.c
modules/demux/nsc.c
+2
-2
No files found.
modules/demux/nsc.c
View file @
4ee06144
...
@@ -235,7 +235,7 @@ char *nscdec( vlc_object_t *p_demux, char* p_encoded )
...
@@ -235,7 +235,7 @@ char *nscdec( vlc_object_t *p_demux, char* p_encoded )
}
}
conv
=
vlc_iconv_open
(
"UTF-8"
,
"UTF-16LE"
);
conv
=
vlc_iconv_open
(
"UTF-8"
,
"UTF-16LE"
);
if
(
conv
==
(
vlc_iconv_t
)
-
1
)
if
(
conv
==
(
vlc_iconv_t
)
(
-
1
)
)
{
{
msg_Err
(
p_demux
,
"iconv_open failed"
);
msg_Err
(
p_demux
,
"iconv_open failed"
);
free
(
buf16
);
free
(
buf16
);
...
@@ -246,7 +246,7 @@ char *nscdec( vlc_object_t *p_demux, char* p_encoded )
...
@@ -246,7 +246,7 @@ char *nscdec( vlc_object_t *p_demux, char* p_encoded )
p_buf8
=
buf8
;
p_buf8
=
buf8
;
p_buf16
=
(
const
char
*
)
buf16
;
p_buf16
=
(
const
char
*
)
buf16
;
if
(
vlc_iconv
(
conv
,
&
p_buf16
,
&
buf16_size
,
&
p_buf8
,
&
buf8_size
)
==
0
)
if
(
vlc_iconv
(
conv
,
&
p_buf16
,
&
buf16_size
,
&
p_buf8
,
&
buf8_size
)
==
(
size_t
)(
-
1
)
)
{
{
msg_Err
(
p_demux
,
"iconv failed"
);
msg_Err
(
p_demux
,
"iconv failed"
);
return
NULL
;
return
NULL
;
...
...
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