Removed unnecessary member variable

This commit is contained in:
Rik Heijdens 2016-09-01 15:01:17 +02:00
parent 4d18e623d6
commit 26fe1dc238

View File

@ -208,7 +208,6 @@ public final class Eia608Decoder implements SubtitleDecoder {
private int captionMode; private int captionMode;
private int captionRowCount; private int captionRowCount;
boolean nextRowDown;
// The Cue that's currently being built and decoded. // The Cue that's currently being built and decoded.
private Eia608CueBuilder currentCue; private Eia608CueBuilder currentCue;
@ -233,7 +232,6 @@ public final class Eia608Decoder implements SubtitleDecoder {
ccData = new ParsableByteArray(); ccData = new ParsableByteArray();
subtitle = new Eia608Subtitle(); subtitle = new Eia608Subtitle();
cues = new LinkedList<>(); cues = new LinkedList<>();
nextRowDown = false;
setCaptionMode(CC_MODE_UNKNOWN); setCaptionMode(CC_MODE_UNKNOWN);
captionRowCount = DEFAULT_CAPTIONS_ROW_COUNT; captionRowCount = DEFAULT_CAPTIONS_ROW_COUNT;
@ -322,7 +320,6 @@ public final class Eia608Decoder implements SubtitleDecoder {
playbackPositionUs = 0; playbackPositionUs = 0;
currentCue = new Eia608CueBuilder(); currentCue = new Eia608CueBuilder();
cues.clear(); cues.clear();
nextRowDown = false;
repeatableControlSet = false; repeatableControlSet = false;
repeatableControlCc1 = 0; repeatableControlCc1 = 0;
repeatableControlCc2 = 0; repeatableControlCc2 = 0;
@ -501,7 +498,7 @@ public final class Eia608Decoder implements SubtitleDecoder {
// For PAC layout see: https://en.wikipedia.org/wiki/EIA-608#Control_commands // For PAC layout see: https://en.wikipedia.org/wiki/EIA-608#Control_commands
// Parse the "next row down" toggle. // Parse the "next row down" toggle.
nextRowDown = (cc2 & 0x20) != 0; boolean nextRowDown = (cc2 & 0x20) != 0;
int row = ROW_INDICES[cc1 & 0x7]; int row = ROW_INDICES[cc1 & 0x7];
if (row != currentCue.getRow() || nextRowDown) { if (row != currentCue.getRow() || nextRowDown) {