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
86d3f7ad
Commit
86d3f7ad
authored
Mar 01, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed closed caption decoder with CC3/4 and TX data.
parent
1898f375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
modules/codec/cc.c
modules/codec/cc.c
+6
-8
No files found.
modules/codec/cc.c
View file @
86d3f7ad
...
...
@@ -563,6 +563,9 @@ static void Eia608EraseToEndOfRow( eia608_t *h )
static
void
Eia608RollUp
(
eia608_t
*
h
)
{
if
(
h
->
mode
==
EIA608_MODE_TEXT
)
return
;
const
int
i_screen
=
Eia608GetWritingScreenIndex
(
h
);
eia608_screen
*
screen
=
&
h
->
screen
[
i_screen
];
...
...
@@ -616,15 +619,10 @@ static void Eia608ParseChannel( eia608_t *h, const uint8_t d[2] )
/* */
const
int
d1
=
d
[
0
]
&
0x7f
;
// const int d2 = d[1] & 0x7f;
if
(
d1
==
0x14
)
h
->
i_channel
=
1
;
else
if
(
d1
==
0x1c
)
h
->
i_channel
=
2
;
else
if
(
d1
==
0x15
)
if
(
d1
>=
0x10
&&
d1
<=
0x1f
)
h
->
i_channel
=
1
+
((
d1
&
0x08
)
!=
0
);
else
if
(
d1
<
0x10
)
h
->
i_channel
=
3
;
else
if
(
d1
==
0x1d
)
h
->
i_channel
=
4
;
}
static
bool
Eia608ParseTextAttribute
(
eia608_t
*
h
,
uint8_t
d2
)
{
...
...
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