mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
Temporal fix to allow proper library shrinking.
PiperOrigin-RevId: 492579961
This commit is contained in:
parent
3efc62b512
commit
c14b250445
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user