@@ -171,7 +171,7 @@ public class FragmentedMp4Extractor implements Extractor {
171171 // Extractor output.
172172 private @ MonotonicNonNull ExtractorOutput extractorOutput ;
173173 private TrackOutput [] emsgTrackOutputs ;
174- private TrackOutput [] cea608TrackOutputs ;
174+ private TrackOutput [] ceaTrackOutputs ;
175175
176176 // Whether extractorOutput.seekMap has been called.
177177 private boolean haveOutputSeekMap ;
@@ -576,12 +576,12 @@ private void maybeInitExtraTracks() {
576576 eventMessageTrackOutput .format (EMSG_FORMAT );
577577 }
578578 }
579- if (cea608TrackOutputs == null ) {
580- cea608TrackOutputs = new TrackOutput [closedCaptionFormats .size ()];
581- for (int i = 0 ; i < cea608TrackOutputs .length ; i ++) {
579+ if (ceaTrackOutputs == null ) {
580+ ceaTrackOutputs = new TrackOutput [closedCaptionFormats .size ()];
581+ for (int i = 0 ; i < ceaTrackOutputs .length ; i ++) {
582582 TrackOutput output = extractorOutput .track (trackBundles .size () + 1 + i , C .TRACK_TYPE_TEXT );
583583 output .format (closedCaptionFormats .get (i ));
584- cea608TrackOutputs [i ] = output ;
584+ ceaTrackOutputs [i ] = output ;
585585 }
586586 }
587587 }
@@ -1328,8 +1328,9 @@ private boolean readSample(ExtractorInput input) throws IOException {
13281328 output .sampleData (nalStartCode , 4 );
13291329 // Write the NAL unit type byte.
13301330 output .sampleData (nalPrefix , 1 );
1331- processSeiNalUnitPayload = cea608TrackOutputs .length > 0
1332- && NalUnitUtil .isNalUnitSei (track .format .sampleMimeType , nalPrefixData [4 ]);
1331+ processSeiNalUnitPayload =
1332+ ceaTrackOutputs .length > 0
1333+ && NalUnitUtil .isNalUnitSei (track .format .sampleMimeType , nalPrefixData [4 ]);
13331334 sampleBytesWritten += 5 ;
13341335 sampleSize += nalUnitLengthFieldLengthDiff ;
13351336 } else {
@@ -1345,7 +1346,7 @@ private boolean readSample(ExtractorInput input) throws IOException {
13451346 // If the format is H.265/HEVC the NAL unit header has two bytes so skip one more byte.
13461347 nalBuffer .setPosition (MimeTypes .VIDEO_H265 .equals (track .format .sampleMimeType ) ? 1 : 0 );
13471348 nalBuffer .setLimit (unescapedLength );
1348- CeaUtil .consume (sampleTimeUs , nalBuffer , cea608TrackOutputs );
1349+ CeaUtil .consume (sampleTimeUs , nalBuffer , ceaTrackOutputs );
13491350 } else {
13501351 // Write the payload of the NAL unit.
13511352 writtenBytes = output .sampleData (input , sampleCurrentNalBytesRemaining , false );
0 commit comments