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
d6d59ef0
authored
Dec 02, 2016
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Restore accidentally clobbered MKV change
parent
bbbd61e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
library/src/main/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.java
library/src/main/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.java
View file @
d6d59ef0
...
...
@@ -26,6 +26,7 @@ import com.google.android.exoplayer2.extractor.Extractor;
import
com.google.android.exoplayer2.extractor.ExtractorInput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorsFactory
;
import
com.google.android.exoplayer2.extractor.MpegAudioHeader
;
import
com.google.android.exoplayer2.extractor.PositionHolder
;
import
com.google.android.exoplayer2.extractor.SeekMap
;
import
com.google.android.exoplayer2.extractor.TrackOutput
;
...
...
@@ -84,6 +85,7 @@ public final class MatroskaExtractor implements Extractor {
private
static
final
String
CODEC_ID_VORBIS
=
"A_VORBIS"
;
private
static
final
String
CODEC_ID_OPUS
=
"A_OPUS"
;
private
static
final
String
CODEC_ID_AAC
=
"A_AAC"
;
private
static
final
String
CODEC_ID_MP2
=
"A_MPEG/L2"
;
private
static
final
String
CODEC_ID_MP3
=
"A_MPEG/L3"
;
private
static
final
String
CODEC_ID_AC3
=
"A_AC3"
;
private
static
final
String
CODEC_ID_E_AC3
=
"A_EAC3"
;
...
...
@@ -100,7 +102,6 @@ public final class MatroskaExtractor implements Extractor {
private
static
final
int
VORBIS_MAX_INPUT_SIZE
=
8192
;
private
static
final
int
OPUS_MAX_INPUT_SIZE
=
5760
;
private
static
final
int
MP3_MAX_INPUT_SIZE
=
4096
;
private
static
final
int
ENCRYPTION_IV_SIZE
=
8
;
private
static
final
int
TRACK_TYPE_AUDIO
=
2
;
...
...
@@ -1218,6 +1219,7 @@ public final class MatroskaExtractor implements Extractor {
||
CODEC_ID_OPUS
.
equals
(
codecId
)
||
CODEC_ID_VORBIS
.
equals
(
codecId
)
||
CODEC_ID_AAC
.
equals
(
codecId
)
||
CODEC_ID_MP2
.
equals
(
codecId
)
||
CODEC_ID_MP3
.
equals
(
codecId
)
||
CODEC_ID_AC3
.
equals
(
codecId
)
||
CODEC_ID_E_AC3
.
equals
(
codecId
)
...
...
@@ -1403,9 +1405,13 @@ public final class MatroskaExtractor implements Extractor {
mimeType
=
MimeTypes
.
AUDIO_AAC
;
initializationData
=
Collections
.
singletonList
(
codecPrivate
);
break
;
case
CODEC_ID_MP2:
mimeType
=
MimeTypes
.
AUDIO_MPEG_L2
;
maxInputSize
=
MpegAudioHeader
.
MAX_FRAME_SIZE_BYTES
;
break
;
case
CODEC_ID_MP3:
mimeType
=
MimeTypes
.
AUDIO_MPEG
;
maxInputSize
=
M
P3_MAX_INPUT_SIZE
;
maxInputSize
=
M
pegAudioHeader
.
MAX_FRAME_SIZE_BYTES
;
break
;
case
CODEC_ID_AC3:
mimeType
=
MimeTypes
.
AUDIO_AC3
;
...
...
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