Commit 0d79208c by Oliver Woodman

Merge pull request #5147 from zsmatyas:dev-v2

PiperOrigin-RevId: 224114911
parents 22a8aa31 d1e49f20
......@@ -560,6 +560,14 @@ public final class Cea608Decoder extends CeaDecoder {
int oldCaptionMode = this.captionMode;
this.captionMode = captionMode;
if (captionMode == CC_MODE_PAINT_ON) {
// Switching to paint-on mode should have no effect except to select the mode.
for (int i = 0; i < cueBuilders.size(); i++) {
cueBuilders.get(i).setCaptionMode(captionMode);
}
return;
}
// Clear the working memory.
resetCueBuilders();
if (oldCaptionMode == CC_MODE_PAINT_ON || captionMode == CC_MODE_ROLL_UP
......@@ -664,6 +672,10 @@ public final class Cea608Decoder extends CeaDecoder {
tabOffset = 0;
}
public void setCaptionMode(int captionMode) {
this.captionMode = captionMode;
}
public void setCaptionRowCount(int captionRowCount) {
this.captionRowCount = captionRowCount;
}
......
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