Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2b8cfcf2
authored
Dec 23, 2020
by
Oliver Woodman
Committed by
Ian Baker
Jan 11, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Merge pull request #8357 from TiVo:p-fix-cea708anchor
PiperOrigin-RevId: 348440799
parent
011342f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/text/cea/Cea708Decoder.java
RELEASENOTES.md
View file @
2b8cfcf2
...
...
@@ -19,6 +19,8 @@
*
Text:
*
Gracefully handle null-terminated subtitle content in Matroska
containers.
*
Fix CEA-708 anchor positioning
(
[
#1807
](
https://github.com/google/ExoPlayer/issues/1807
)
).
*
Media2 extension
*
Make media2-extension depend on AndroidX media2:media2-session:1.1.0 to
fix a deadlock while creating PlaybackStateCompat internally.
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/cea/Cea708Decoder.java
View file @
2b8cfcf2
...
...
@@ -1226,18 +1226,18 @@ public final class Cea708Decoder extends CeaDecoder {
// | |
// 6-----7-----8
@AnchorType
int
verticalAnchorType
;
if
(
anchorId
%
3
==
0
)
{
if
(
anchorId
/
3
==
0
)
{
verticalAnchorType
=
Cue
.
ANCHOR_TYPE_START
;
}
else
if
(
anchorId
%
3
==
1
)
{
}
else
if
(
anchorId
/
3
==
1
)
{
verticalAnchorType
=
Cue
.
ANCHOR_TYPE_MIDDLE
;
}
else
{
verticalAnchorType
=
Cue
.
ANCHOR_TYPE_END
;
}
// TODO: Add support for right-to-left languages (i.e. where start is on the right).
@AnchorType
int
horizontalAnchorType
;
if
(
anchorId
/
3
==
0
)
{
if
(
anchorId
%
3
==
0
)
{
horizontalAnchorType
=
Cue
.
ANCHOR_TYPE_START
;
}
else
if
(
anchorId
/
3
==
1
)
{
}
else
if
(
anchorId
%
3
==
1
)
{
horizontalAnchorType
=
Cue
.
ANCHOR_TYPE_MIDDLE
;
}
else
{
horizontalAnchorType
=
Cue
.
ANCHOR_TYPE_END
;
...
...
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