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
e7b1c021
authored
Mar 15, 2023
by
Haixia Shi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Replace ffmpeg specific link with generic VP9/MP4 atom syntax spec.
parent
614dbd1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 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 @
e7b1c021
...
@@ -1173,10 +1173,10 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
...
@@ -1173,10 +1173,10 @@ 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
.
HEADER_SIZE
);
// See vpcC atom syntax: https://www.webmproject.org/vp9/mp4/#syntax_1
//
vpcC atom parsing based on FFmpeg implementation
//
Skip FullBox header, and profile and level fields
// see https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/vpcc.c
parent
.
setPosition
(
childStartPosition
+
Atom
.
FULL_HEADER_SIZE
);
parent
.
skipBytes
(
6
);
parent
.
skipBytes
(
2
);
boolean
fullRangeFlag
=
(
parent
.
readUnsignedByte
()
&
1
)
!=
0
;
boolean
fullRangeFlag
=
(
parent
.
readUnsignedByte
()
&
1
)
!=
0
;
int
colorPrimaries
=
parent
.
readUnsignedByte
();
int
colorPrimaries
=
parent
.
readUnsignedByte
();
int
transferCharacteristics
=
parent
.
readUnsignedByte
();
int
transferCharacteristics
=
parent
.
readUnsignedByte
();
...
...
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