Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e14da610
Commit
e14da610
authored
Oct 11, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CC: simplify Eia608TextUtf8()
parent
d3a8a23d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
modules/codec/cc.c
modules/codec/cc.c
+7
-16
No files found.
modules/codec/cc.c
View file @
e14da610
...
...
@@ -899,23 +899,14 @@ static void Eia608TextUtf8( char *psz_utf8, uint8_t c ) // Returns number of byt
#undef E2
#undef E1
static
const
int
i_c2utf8
=
sizeof
(
c2utf8
)
/
sizeof
(
*
c2utf8
);
int
i
;
for
(
size_t
i
=
0
;
i
<
ARRAY_SIZE
(
c2utf8
)
;
i
++
)
if
(
c2utf8
[
i
].
c
==
c
)
{
strcpy
(
psz_utf8
,
c2utf8
[
i
].
utf8
);
return
;
}
for
(
i
=
0
;
i
<
i_c2utf8
;
i
++
)
{
if
(
c2utf8
[
i
].
c
==
c
)
break
;
}
if
(
i
>=
i_c2utf8
)
{
psz_utf8
[
0
]
=
c
<
0x80
?
c
:
'?'
;
/* Normal : Unsupported */
psz_utf8
[
1
]
=
'\0'
;
}
else
{
strcpy
(
psz_utf8
,
c2utf8
[
i
].
utf8
);
}
psz_utf8
[
0
]
=
c
<
0x80
?
c
:
'?'
;
/* Normal : Unsupported */
psz_utf8
[
1
]
=
'\0'
;
}
static
void
Eia608Strlcat
(
char
*
d
,
const
char
*
s
,
int
i_max
)
...
...
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