Change order of RawCcExtractor init to call format before endTracks.

This fixes an issue where the output track's sample format is null for rawCC captions when endTracks method is called.

PiperOrigin-RevId: 313622631
This commit is contained in:
olly 2020-05-28 19:09:57 +01:00 committed by Oliver Woodman
parent 0c81022aaa
commit 1cfb68bf68

View File

@ -66,8 +66,8 @@ public final class RawCcExtractor implements Extractor {
public void init(ExtractorOutput output) {
output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
trackOutput = output.track(0, C.TRACK_TYPE_TEXT);
output.endTracks();
trackOutput.format(format);
output.endTracks();
}
@Override