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
a9d9a46c
authored
Jul 22, 2015
by
ojw28
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #643 from Ood-Tsen/s263
add support s263
parents
85e0bca3
cf2e539a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
3 deletions
library/src/main/java/com/google/android/exoplayer/extractor/mp4/Atom.java
library/src/main/java/com/google/android/exoplayer/extractor/mp4/AtomParsers.java
library/src/main/java/com/google/android/exoplayer/extractor/mp4/FragmentedMp4Extractor.java
library/src/main/java/com/google/android/exoplayer/extractor/mp4/Mp4Extractor.java
library/src/main/java/com/google/android/exoplayer/util/MimeTypes.java
library/src/main/java/com/google/android/exoplayer/extractor/mp4/Atom.java
View file @
a9d9a46c
...
...
@@ -92,6 +92,8 @@ import java.util.List;
public
static
final
int
TYPE_stco
=
Util
.
getIntegerCodeForString
(
"stco"
);
public
static
final
int
TYPE_co64
=
Util
.
getIntegerCodeForString
(
"co64"
);
public
static
final
int
TYPE_tx3g
=
Util
.
getIntegerCodeForString
(
"tx3g"
);
public
static
final
int
TYPE_s263
=
Util
.
getIntegerCodeForString
(
"s263"
);
public
static
final
int
TYPE_d263
=
Util
.
getIntegerCodeForString
(
"d263"
);
public
final
int
type
;
...
...
library/src/main/java/com/google/android/exoplayer/extractor/mp4/AtomParsers.java
View file @
a9d9a46c
...
...
@@ -336,7 +336,8 @@ import java.util.List;
int
childAtomType
=
stsd
.
readInt
();
if
(
childAtomType
==
Atom
.
TYPE_avc1
||
childAtomType
==
Atom
.
TYPE_avc3
||
childAtomType
==
Atom
.
TYPE_encv
||
childAtomType
==
Atom
.
TYPE_mp4v
||
childAtomType
==
Atom
.
TYPE_hvc1
||
childAtomType
==
Atom
.
TYPE_hev1
)
{
||
childAtomType
==
Atom
.
TYPE_hvc1
||
childAtomType
==
Atom
.
TYPE_hev1
||
childAtomType
==
Atom
.
TYPE_s263
)
{
parseVideoSampleEntry
(
stsd
,
childStartPosition
,
childAtomSize
,
durationUs
,
holder
,
i
);
}
else
if
(
childAtomType
==
Atom
.
TYPE_mp4a
||
childAtomType
==
Atom
.
TYPE_enca
||
childAtomType
==
Atom
.
TYPE_ac_3
)
{
...
...
@@ -387,6 +388,9 @@ import java.util.List;
Pair
<
List
<
byte
[]>,
Integer
>
hvcCData
=
parseHvcCFromParent
(
parent
,
childStartPosition
);
initializationData
=
hvcCData
.
first
;
out
.
nalUnitLengthFieldLength
=
hvcCData
.
second
;
}
else
if
(
childAtomType
==
Atom
.
TYPE_d263
)
{
Assertions
.
checkState
(
mimeType
==
null
);
mimeType
=
MimeTypes
.
VIDEO_H263
;
}
else
if
(
childAtomType
==
Atom
.
TYPE_esds
)
{
Assertions
.
checkState
(
mimeType
==
null
);
Pair
<
String
,
byte
[]>
mimeTypeAndInitializationData
=
...
...
library/src/main/java/com/google/android/exoplayer/extractor/mp4/FragmentedMp4Extractor.java
View file @
a9d9a46c
...
...
@@ -697,7 +697,7 @@ public final class FragmentedMp4Extractor implements Extractor {
||
atom
==
Atom
.
TYPE_trun
||
atom
==
Atom
.
TYPE_mvex
||
atom
==
Atom
.
TYPE_mdia
||
atom
==
Atom
.
TYPE_minf
||
atom
==
Atom
.
TYPE_stbl
||
atom
==
Atom
.
TYPE_pssh
||
atom
==
Atom
.
TYPE_saiz
||
atom
==
Atom
.
TYPE_uuid
||
atom
==
Atom
.
TYPE_senc
||
atom
==
Atom
.
TYPE_pasp
;
||
atom
==
Atom
.
TYPE_pasp
||
atom
==
Atom
.
TYPE_s263
;
}
/** Returns whether the extractor should parse a container atom with type {@code atom}. */
...
...
library/src/main/java/com/google/android/exoplayer/extractor/mp4/Mp4Extractor.java
View file @
a9d9a46c
...
...
@@ -365,7 +365,8 @@ public final class Mp4Extractor implements Extractor, SeekMap {
||
atom
==
Atom
.
TYPE_avc1
||
atom
==
Atom
.
TYPE_avcC
||
atom
==
Atom
.
TYPE_mp4a
||
atom
==
Atom
.
TYPE_esds
||
atom
==
Atom
.
TYPE_stts
||
atom
==
Atom
.
TYPE_stss
||
atom
==
Atom
.
TYPE_ctts
||
atom
==
Atom
.
TYPE_stsc
||
atom
==
Atom
.
TYPE_stsz
||
atom
==
Atom
.
TYPE_stco
||
atom
==
Atom
.
TYPE_co64
||
atom
==
Atom
.
TYPE_tkhd
;
||
atom
==
Atom
.
TYPE_stco
||
atom
==
Atom
.
TYPE_co64
||
atom
==
Atom
.
TYPE_tkhd
||
atom
==
Atom
.
TYPE_s263
;
}
/** Returns whether the extractor should parse a container atom with type {@code atom}. */
...
...
library/src/main/java/com/google/android/exoplayer/util/MimeTypes.java
View file @
a9d9a46c
...
...
@@ -37,6 +37,7 @@ public class MimeTypes {
public
static
final
String
VIDEO_VP8
=
BASE_TYPE_VIDEO
+
"/x-vnd.on2.vp8"
;
public
static
final
String
VIDEO_VP9
=
BASE_TYPE_VIDEO
+
"/x-vnd.on2.vp9"
;
public
static
final
String
VIDEO_MP4V
=
BASE_TYPE_VIDEO
+
"/mp4v-es"
;
public
static
final
String
VIDEO_H263
=
BASE_TYPE_VIDEO
+
"/3gpp"
;
public
static
final
String
AUDIO_MP4
=
BASE_TYPE_AUDIO
+
"/mp4"
;
public
static
final
String
AUDIO_AAC
=
BASE_TYPE_AUDIO
+
"/mp4a-latm"
;
...
...
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