Temporal fix to allow proper library shrinking.

PiperOrigin-RevId: 492579961
This commit is contained in:
Googler 2022-12-02 23:55:10 +00:00 committed by Ian Baker
parent 3efc62b512
commit c14b250445

View File

@ -130,13 +130,13 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
private @Mp3Extractor.Flags int mp3Flags;
private @TsExtractor.Mode int tsMode;
private @DefaultTsPayloadReaderFactory.Flags int tsFlags;
private ImmutableList<Format> tsSubtitleFormats;
// TODO (b/260245332): Initialize tsSubtitleFormats in constructor once shrinking bug is fixed.
@Nullable private ImmutableList<Format> tsSubtitleFormats;
private int tsTimestampSearchBytes;
public DefaultExtractorsFactory() {
tsMode = TsExtractor.MODE_SINGLE_PMT;
tsTimestampSearchBytes = TsExtractor.DEFAULT_TIMESTAMP_SEARCH_BYTES;
tsSubtitleFormats = ImmutableList.of();
}
/**
@ -434,6 +434,9 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
extractors.add(new PsExtractor());
break;
case FileTypes.TS:
if (tsSubtitleFormats == null) {
tsSubtitleFormats = ImmutableList.of();
}
extractors.add(
new TsExtractor(
tsMode,