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
5e47c3c5
authored
Dec 23, 2020
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #8357 from TiVo:p-fix-cea708anchor
PiperOrigin-RevId: 348440799
parents
30ee29df
b70f08b7
Hide 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 @
5e47c3c5
...
...
@@ -67,6 +67,8 @@
*
Text:
*
Gracefully handle null-terminated subtitle content in Matroska
containers.
*
Fix CEA-708 anchor positioning
(
[
#1807
](
https://github.com/google/ExoPlayer/issues/1807
)
).
*
OkHttp extension:
*
Add
`OkHttpDataSource.Factory`
and deprecate
`OkHttpDataSourceFactory`
.
*
Media2 extension
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/cea/Cea708Decoder.java
View file @
5e47c3c5
...
...
@@ -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