Commit 1cfb68bf by olly Committed by Oliver Woodman

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
parent 0c81022a
......@@ -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
......
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