Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f3832b33
authored
Dec 02, 2022
by
Googler
Committed by
Ian Baker
Dec 12, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Temporal fix to allow proper library shrinking.
PiperOrigin-RevId: 492579961
parent
d6c87249
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/DefaultExtractorsFactory.java
View file @
f3832b33
...
@@ -128,13 +128,13 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
...
@@ -128,13 +128,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
();
}
}
/**
/**
...
@@ -432,6 +432,9 @@ public final class DefaultExtractorsFactory implements ExtractorsFactory {
...
@@ -432,6 +432,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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment