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
d88dd74b
authored
Mar 16, 2023
by
Rohit Singh
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #11064 from haixia-meta:release-v2
PiperOrigin-RevId: 517128752
parents
3ac82b1d
e7b1c021
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
View file @
d88dd74b
...
@@ -1226,6 +1226,22 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
...
@@ -1226,6 +1226,22 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
}
else
if
(
childAtomType
==
Atom
.
TYPE_vpcC
)
{
}
else
if
(
childAtomType
==
Atom
.
TYPE_vpcC
)
{
ExtractorUtil
.
checkContainerInput
(
mimeType
==
null
,
/* message= */
null
);
ExtractorUtil
.
checkContainerInput
(
mimeType
==
null
,
/* message= */
null
);
mimeType
=
(
atomType
==
Atom
.
TYPE_vp08
)
?
MimeTypes
.
VIDEO_VP8
:
MimeTypes
.
VIDEO_VP9
;
mimeType
=
(
atomType
==
Atom
.
TYPE_vp08
)
?
MimeTypes
.
VIDEO_VP8
:
MimeTypes
.
VIDEO_VP9
;
parent
.
setPosition
(
childStartPosition
+
Atom
.
FULL_HEADER_SIZE
);
// See vpcC atom syntax: https://www.webmproject.org/vp9/mp4/#syntax_1
parent
.
skipBytes
(
2
);
// profile(8), level(8)
boolean
fullRangeFlag
=
(
parent
.
readUnsignedByte
()
&
1
)
!=
0
;
int
colorPrimaries
=
parent
.
readUnsignedByte
();
int
transferCharacteristics
=
parent
.
readUnsignedByte
();
// Modify these values only if they have not already been set. If 'Atom.TYPE_colr' atom is
// present, these values may be overridden.
if
(
colorSpace
==
Format
.
NO_VALUE
&&
colorRange
==
Format
.
NO_VALUE
&&
colorTransfer
==
Format
.
NO_VALUE
)
{
colorSpace
=
ColorInfo
.
isoColorPrimariesToColorSpace
(
colorPrimaries
);
colorRange
=
fullRangeFlag
?
C
.
COLOR_RANGE_FULL
:
C
.
COLOR_RANGE_LIMITED
;
colorTransfer
=
ColorInfo
.
isoTransferCharacteristicsToColorTransfer
(
transferCharacteristics
);
}
}
else
if
(
childAtomType
==
Atom
.
TYPE_av1C
)
{
}
else
if
(
childAtomType
==
Atom
.
TYPE_av1C
)
{
ExtractorUtil
.
checkContainerInput
(
mimeType
==
null
,
/* message= */
null
);
ExtractorUtil
.
checkContainerInput
(
mimeType
==
null
,
/* message= */
null
);
mimeType
=
MimeTypes
.
VIDEO_AV1
;
mimeType
=
MimeTypes
.
VIDEO_AV1
;
...
...
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