mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
CEA 608 bugfix
This commit is contained in:
parent
421dab433a
commit
fda2d143e4
1 changed files with 6 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ public final class Cea608Decoder extends CeaDecoder {
|
||||||
// underline toggle
|
// underline toggle
|
||||||
boolean nextRowDown = (cc2 & 0x20) != 0;
|
boolean nextRowDown = (cc2 & 0x20) != 0;
|
||||||
if (row != currentCueBuilder.getRow() || nextRowDown) {
|
if (row != currentCueBuilder.getRow() || nextRowDown) {
|
||||||
if (!currentCueBuilder.isEmpty()) {
|
if (captionMode != CC_MODE_ROLL_UP && !currentCueBuilder.isEmpty()) {
|
||||||
currentCueBuilder = new CueBuilder(captionMode, captionRowCount);
|
currentCueBuilder = new CueBuilder(captionMode, captionRowCount);
|
||||||
cueBuilders.add(currentCueBuilder);
|
cueBuilders.add(currentCueBuilder);
|
||||||
}
|
}
|
||||||
|
|
@ -755,6 +755,11 @@ public final class Cea608Decoder extends CeaDecoder {
|
||||||
TYPE_UNSET, 0.8f);
|
TYPE_UNSET, 0.8f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return captionStringBuilder.toString();
|
||||||
|
}
|
||||||
|
|
||||||
private static class CueStyle {
|
private static class CueStyle {
|
||||||
|
|
||||||
public final CharacterStyle style;
|
public final CharacterStyle style;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue