mirror of
https://github.com/androidx/media.git
synced 2025-05-08 16:10:38 +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 @Mp3Extractor.Flags int mp3Flags;
|
||||||
private @TsExtractor.Mode int tsMode;
|
private @TsExtractor.Mode int tsMode;
|
||||||
private @DefaultTsPayloadReaderFactory.Flags int tsFlags;
|
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;
|
private int tsTimestampSearchBytes;
|
||||||
|
|
||||||
public DefaultExtractorsFactory() {
|
public DefaultExtractorsFactory() {
|
||||||
tsMode = TsExtractor.MODE_SINGLE_PMT;
|
tsMode = TsExtractor.MODE_SINGLE_PMT;
|
||||||
tsTimestampSearchBytes = TsExtractor.DEFAULT_TIMESTAMP_SEARCH_BYTES;
|
tsTimestampSearchBytes = TsExtractor.DEFAULT_TIMESTAMP_SEARCH_BYTES;
|
||||||
tsSubtitleFormats = ImmutableList.of();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -434,6 +434,9 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
|
|||||||
extractors.add(new PsExtractor());
|
extractors.add(new PsExtractor());
|
||||||
break;
|
break;
|
||||||
case FileTypes.TS:
|
case FileTypes.TS:
|
||||||
|
if (tsSubtitleFormats == null) {
|
||||||
|
tsSubtitleFormats = ImmutableList.of();
|
||||||
|
}
|
||||||
extractors.add(
|
extractors.add(
|
||||||
new TsExtractor(
|
new TsExtractor(
|
||||||
tsMode,
|
tsMode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user