Temporal fix to allow proper library shrinking.
PiperOrigin-RevId: 492579961
This commit is contained in:
parent
d6c872494b
commit
f3832b33d3
@ -128,13 +128,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();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -432,6 +432,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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user