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
f599155b
authored
May 13, 2020
by
aquilescanta
Committed by
Oliver Woodman
May 14, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Document the sample data format for samples with supplemental data
PiperOrigin-RevId: 311298802
parent
621f1b0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/TrackOutput.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/TrackOutput.java
View file @
f599155b
...
...
@@ -130,7 +130,20 @@ public interface TrackOutput {
* </ul>
*/
int
SAMPLE_DATA_PART_ENCRYPTION
=
1
;
/** Sample supplemental data. */
/**
* Sample supplemental data.
*
* <p>If a sample contains supplemental data, the format of the entire sample data will be:
*
* <ul>
* <li>If the sample has the {@link C#BUFFER_FLAG_ENCRYPTED} flag set, all encryption
* information.
* <li>(4 bytes) {@code sample_data_size}: The size of the actual sample data, not including
* supplemental data or encryption information.
* <li>({@code sample_data_size} bytes): The media sample data.
* <li>(remaining bytes) The supplemental data.
* </ul>
*/
int
SAMPLE_DATA_PART_SUPPLEMENTAL
=
2
;
/**
...
...
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