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:
parent
0c81022aaa
commit
1cfb68bf68
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user