Commit fda2d143 by Oliver Woodman

CEA 608 bugfix

parent 421dab43
......@@ -409,7 +409,7 @@ public final class Cea608Decoder extends CeaDecoder {
// underline toggle
boolean nextRowDown = (cc2 & 0x20) != 0;
if (row != currentCueBuilder.getRow() || nextRowDown) {
if (!currentCueBuilder.isEmpty()) {
if (captionMode != CC_MODE_ROLL_UP && !currentCueBuilder.isEmpty()) {
currentCueBuilder = new CueBuilder(captionMode, captionRowCount);
cueBuilders.add(currentCueBuilder);
}
......@@ -755,6 +755,11 @@ public final class Cea608Decoder extends CeaDecoder {
TYPE_UNSET, 0.8f);
}
@Override
public String toString() {
return captionStringBuilder.toString();
}
private static class CueStyle {
public final CharacterStyle style;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment