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
0a52e823
authored
Dec 02, 2016
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use constant for MPEG max frame size
parent
b5437907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 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 @
0a52e823
...
...
@@ -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
;
...
...
@@ -101,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
;
...
...
@@ -1407,11 +1407,11 @@ public final class MatroskaExtractor implements Extractor {
break
;
case
CODEC_ID_MP2:
mimeType
=
MimeTypes
.
AUDIO_MPEG_L2
;
maxInputSize
=
M
P3_MAX_INPUT_SIZE
;
maxInputSize
=
M
pegAudioHeader
.
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