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
e8fd3025
authored
Jun 12, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix propagation of sample encryption key for webm
parent
ead25a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
library/src/main/java/com/google/android/exoplayer/extractor/webm/WebmExtractor.java
library/src/main/java/com/google/android/exoplayer/extractor/webm/WebmExtractor.java
View file @
e8fd3025
...
...
@@ -168,6 +168,7 @@ public final class WebmExtractor implements Extractor {
private
int
sampleCurrentNalBytesRemaining
;
private
int
sampleTrackNumber
;
private
int
sampleFlags
;
private
byte
[]
sampleEncryptionKeyId
;
private
long
sampleTimeUs
;
private
boolean
sampleRead
;
private
boolean
sampleSeenReferenceBlock
;
...
...
@@ -608,6 +609,7 @@ public final class WebmExtractor implements Extractor {
sampleFlags
=
(
isKeyframe
?
C
.
SAMPLE_FLAG_SYNC
:
0
)
|
(
isInvisible
?
C
.
SAMPLE_FLAG_DECODE_ONLY
:
0
)
|
(
isEncrypted
?
C
.
SAMPLE_FLAG_ENCRYPTED
:
0
);
sampleEncryptionKeyId
=
sampleTrackFormat
.
encryptionKeyId
;
sampleSize
=
contentSize
-
blockBytesRead
;
if
(
isEncrypted
)
{
// Write the vector size.
...
...
@@ -682,7 +684,7 @@ public final class WebmExtractor implements Extractor {
}
private
void
outputSampleMetadata
(
TrackOutput
trackOutput
)
{
trackOutput
.
sampleMetadata
(
sampleTimeUs
,
sampleFlags
,
sampleSize
,
0
,
null
);
trackOutput
.
sampleMetadata
(
sampleTimeUs
,
sampleFlags
,
sampleSize
,
0
,
sampleEncryptionKeyId
);
sampleState
=
SAMPLE_STATE_START
;
sampleRead
=
true
;
}
...
...
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