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
88f6bd6f
authored
Aug 06, 2020
by
William King
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
address comments
parent
c01a6de1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractor.java
View file @
88f6bd6f
...
...
@@ -159,8 +159,6 @@ public class MatroskaExtractor implements Extractor {
private
static
final
int
ID_BLOCK_ADDITION_MAPPING
=
0x41E4
;
private
static
final
int
ID_BLOCK_MORE
=
0xA6
;
private
static
final
int
ID_BLOCK_ADD_ID
=
0xEE
;
private
static
final
int
ID_BLOCK_ADD_ID_VALUE
=
0x41F0
;
private
static
final
int
ID_BLOCK_ADD_ID_NAME
=
0x41A4
;
private
static
final
int
ID_BLOCK_ADD_ID_TYPE
=
0x41E7
;
private
static
final
int
ID_BLOCK_ADD_ID_EXTRA_DATA
=
0x41ED
;
private
static
final
int
ID_BLOCK_ADDITIONAL
=
0xA5
;
...
...
@@ -241,13 +239,13 @@ public class MatroskaExtractor implements Extractor {
* Dolby Vision configuration for profiles <= 7
* https://www.matroska.org/technical/codec_specs.html
*/
private
static
final
int
BLOCK_ADD
ITIONAL_ID
_DVCC
=
0x64766343
;
private
static
final
int
BLOCK_ADD
_ID_TYPE
_DVCC
=
0x64766343
;
/**
* Dolby Vision configuration for profiles > 7
* https://www.matroska.org/technical/codec_specs.html
*/
private
static
final
int
BLOCK_ADD
ITIONAL_ID
_DVVC
=
0x64767643
;
private
static
final
int
BLOCK_ADD
_ID_TYPE
_DVVC
=
0x64767643
;
private
static
final
int
LACING_NONE
=
0
;
private
static
final
int
LACING_XIPH
=
1
;
...
...
@@ -571,14 +569,12 @@ public class MatroskaExtractor implements Extractor {
case
ID_MAX_FALL:
case
ID_PROJECTION_TYPE:
case
ID_BLOCK_ADD_ID:
case
ID_BLOCK_ADD_ID_VALUE:
case
ID_BLOCK_ADD_ID_TYPE:
return
EbmlProcessor
.
ELEMENT_TYPE_UNSIGNED_INT
;
case
ID_DOC_TYPE:
case
ID_NAME:
case
ID_CODEC_ID:
case
ID_LANGUAGE:
case
ID_BLOCK_ADD_ID_NAME:
return
EbmlProcessor
.
ELEMENT_TYPE_STRING
;
case
ID_SEEK_ID:
case
ID_CONTENT_COMPRESSION_SETTINGS:
...
...
@@ -992,7 +988,7 @@ public class MatroskaExtractor implements Extractor {
blockAdditionalId
=
(
int
)
value
;
break
;
case
ID_BLOCK_ADD_ID_TYPE:
currentTrack
.
blockAdd
itionalId
=
(
int
)
value
;
currentTrack
.
blockAdd
IdType
=
(
int
)
value
;
break
;
default
:
break
;
...
...
@@ -1287,7 +1283,7 @@ public class MatroskaExtractor implements Extractor {
Track
track
,
ExtractorInput
input
,
int
contentSize
)
throws
IOException
{
if
(
track
.
blockAdd
itionalId
==
BLOCK_ADDITIONAL_ID_DVVC
||
track
.
blockAdditionalId
==
BLOCK_ADDITIONAL_ID
_DVCC
)
{
if
(
track
.
blockAdd
IdType
==
BLOCK_ADD_ID_TYPE_DVVC
||
track
.
blockAddIdType
==
BLOCK_ADD_ID_TYPE
_DVCC
)
{
track
.
doviDecoderConfigurationRecord
=
new
byte
[
contentSize
];
input
.
readFully
(
track
.
doviDecoderConfigurationRecord
,
0
,
contentSize
);
}
else
{
...
...
@@ -1979,7 +1975,7 @@ public class MatroskaExtractor implements Extractor {
public
int
nalUnitLengthFieldLength
;
// Block additional state
private
int
blockAdd
itionalId
;
private
int
blockAdd
IdType
;
/** Initializes the track with an output. */
public
void
initializeOutput
(
ExtractorOutput
output
,
int
trackId
)
throws
ParserException
{
...
...
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