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
7a6de79f
authored
Oct 30, 2019
by
Arnold Szabo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add initial values to playResX and playResY
parent
86efd194
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
library/core/src/main/java/com/google/android/exoplayer2/text/ssa/SsaDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/text/ssa/SsaDecoder.java
View file @
7a6de79f
...
@@ -53,8 +53,8 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
...
@@ -53,8 +53,8 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
private
int
formatEndIndex
;
private
int
formatEndIndex
;
private
int
formatTextIndex
;
private
int
formatTextIndex
;
private
int
playResX
;
private
int
playResX
=
C
.
LENGTH_UNSET
;
private
int
playResY
;
private
int
playResY
=
C
.
LENGTH_UNSET
;
public
SsaDecoder
()
{
public
SsaDecoder
()
{
this
(
/* initializationData= */
null
);
this
(
/* initializationData= */
null
);
...
@@ -212,7 +212,7 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
...
@@ -212,7 +212,7 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
.
replaceAll
(
"\\\\n"
,
"\n"
);
.
replaceAll
(
"\\\\n"
,
"\n"
);
Cue
cue
;
Cue
cue
;
if
(
position
!=
null
&&
playResX
!=
0
&&
playResY
!=
0
)
{
if
(
position
!=
null
&&
playResX
!=
C
.
LENGTH_UNSET
&&
playResY
!=
C
.
LENGTH_UNSET
)
{
cue
=
new
Cue
(
cue
=
new
Cue
(
text
,
text
,
/* textAlignment */
null
,
/* textAlignment */
null
,
...
...
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