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
005e98fc
authored
Aug 11, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Simplify parsing of encryption data + support SENC boxes.
Issue: #4
parent
8ec88402
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
15 deletions
library/src/main/java/com/google/android/exoplayer/parser/mp4/Atom.java
library/src/main/java/com/google/android/exoplayer/parser/mp4/FragmentedMp4Extractor.java
library/src/main/java/com/google/android/exoplayer/parser/mp4/TrackFragment.java
library/src/main/java/com/google/android/exoplayer/parser/mp4/Atom.java
View file @
005e98fc
...
@@ -54,6 +54,7 @@ import java.util.List;
...
@@ -54,6 +54,7 @@ import java.util.List;
public
static
final
int
TYPE_frma
=
0x66726D61
;
public
static
final
int
TYPE_frma
=
0x66726D61
;
public
static
final
int
TYPE_saiz
=
0x7361697A
;
public
static
final
int
TYPE_saiz
=
0x7361697A
;
public
static
final
int
TYPE_uuid
=
0x75756964
;
public
static
final
int
TYPE_uuid
=
0x75756964
;
public
static
final
int
TYPE_senc
=
0x73656E63
;
public
final
int
type
;
public
final
int
type
;
...
...
library/src/main/java/com/google/android/exoplayer/parser/mp4/FragmentedMp4Extractor.java
View file @
005e98fc
This diff is collapsed.
Click to expand it.
library/src/main/java/com/google/android/exoplayer/parser/mp4/TrackFragment.java
View file @
005e98fc
...
@@ -27,12 +27,10 @@ package com.google.android.exoplayer.parser.mp4;
...
@@ -27,12 +27,10 @@ package com.google.android.exoplayer.parser.mp4;
public
int
[]
sampleDecodingTimeTable
;
public
int
[]
sampleDecodingTimeTable
;
public
int
[]
sampleCompositionTimeOffsetTable
;
public
int
[]
sampleCompositionTimeOffsetTable
;
public
boolean
[]
sampleIsSyncFrameTable
;
public
boolean
[]
sampleIsSyncFrameTable
;
public
boolean
[]
sampleHasSubsampleEncryptionTable
;
public
int
auxiliarySampleInfoTotalSize
;
public
ParsableByteArray
sampleEncryptionData
;
public
int
[]
auxiliarySampleInfoSizeTable
;
public
boolean
sampleEncryptionDataNeedsFill
;
public
boolean
smoothStreamingUsesSubsampleEncryption
;
public
ParsableByteArray
smoothStreamingSampleEncryptionData
;
public
void
setSampleDescriptionIndex
(
int
sampleDescriptionIndex
)
{
public
void
setSampleDescriptionIndex
(
int
sampleDescriptionIndex
)
{
this
.
sampleDescriptionIndex
=
sampleDescriptionIndex
;
this
.
sampleDescriptionIndex
=
sampleDescriptionIndex
;
...
@@ -47,16 +45,11 @@ package com.google.android.exoplayer.parser.mp4;
...
@@ -47,16 +45,11 @@ package com.google.android.exoplayer.parser.mp4;
this
.
length
=
sampleSizeTable
.
length
;
this
.
length
=
sampleSizeTable
.
length
;
}
}
public
void
setAuxiliarySampleInfoTables
(
int
totalAuxiliarySampleInfoSize
,
public
void
setSampleEncryptionData
(
boolean
[]
sampleHasSubsampleEncryptionTable
,
int
[]
auxiliarySampleInfoSizeTable
)
{
ParsableByteArray
sampleEncryptionData
,
boolean
sampleEncryptionDataNeedsFill
)
{
this
.
auxiliarySampleInfoTotalSize
=
totalAuxiliarySampleInfoSize
;
this
.
sampleHasSubsampleEncryptionTable
=
sampleHasSubsampleEncryptionTable
;
this
.
auxiliarySampleInfoSizeTable
=
auxiliarySampleInfoSizeTable
;
this
.
sampleEncryptionData
=
sampleEncryptionData
;
}
this
.
sampleEncryptionDataNeedsFill
=
sampleEncryptionDataNeedsFill
;
public
void
setSmoothStreamingSampleEncryptionData
(
ParsableByteArray
data
,
boolean
usesSubsampleEncryption
)
{
this
.
smoothStreamingSampleEncryptionData
=
data
;
this
.
smoothStreamingUsesSubsampleEncryption
=
usesSubsampleEncryption
;
}
}
public
int
getSamplePresentationTime
(
int
index
)
{
public
int
getSamplePresentationTime
(
int
index
)
{
...
...
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