mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add initial values to playResX and playResY
This commit is contained in:
parent
86efd1944e
commit
7a6de79f91
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||||
.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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue