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
4bc392a8
authored
Oct 29, 2020
by
xufuji456
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix the end point of span exceeds the length of SpannableStringBuilder
parent
af4028f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
library/core/src/main/java/com/google/android/exoplayer2/text/tx3g/Tx3gDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/text/tx3g/Tx3gDecoder.java
View file @
4bc392a8
...
@@ -185,6 +185,9 @@ public final class Tx3gDecoder extends SimpleSubtitleDecoder {
...
@@ -185,6 +185,9 @@ public final class Tx3gDecoder extends SimpleSubtitleDecoder {
int
fontFace
=
parsableByteArray
.
readUnsignedByte
();
int
fontFace
=
parsableByteArray
.
readUnsignedByte
();
parsableByteArray
.
skipBytes
(
1
);
// font size
parsableByteArray
.
skipBytes
(
1
);
// font size
int
colorRgba
=
parsableByteArray
.
readInt
();
int
colorRgba
=
parsableByteArray
.
readInt
();
if
(
end
>
cueText
.
length
())
{
end
=
cueText
.
length
();
}
attachFontFace
(
cueText
,
fontFace
,
defaultFontFace
,
start
,
end
,
SPAN_PRIORITY_HIGH
);
attachFontFace
(
cueText
,
fontFace
,
defaultFontFace
,
start
,
end
,
SPAN_PRIORITY_HIGH
);
attachColor
(
cueText
,
colorRgba
,
defaultColorRgba
,
start
,
end
,
SPAN_PRIORITY_HIGH
);
attachColor
(
cueText
,
colorRgba
,
defaultColorRgba
,
start
,
end
,
SPAN_PRIORITY_HIGH
);
}
}
...
...
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