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
440824ae
authored
Jan 03, 2019
by
andrewlewis
Committed by
Oliver Woodman
Jan 08, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix replacement char check
PiperOrigin-RevId: 227646358
parent
0ed7ddec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/MetadataUtil.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/MetadataUtil.java
View file @
440824ae
...
...
@@ -103,6 +103,9 @@ import com.google.android.exoplayer2.util.Util;
private
static
final
String
LANGUAGE_UNDEFINED
=
"und"
;
private
static
final
int
TYPE_TOP_BYTE_COPYRIGHT
=
0xA9
;
private
static
final
int
TYPE_TOP_BYTE_REPLACEMENT
=
0xFD
;
// Truncated value of \uFFFD.
private
MetadataUtil
()
{}
/**
...
...
@@ -119,8 +122,7 @@ import com.google.android.exoplayer2.util.Util;
int
type
=
ilst
.
readInt
();
int
typeTopByte
=
(
type
>>
24
)
&
0xFF
;
try
{
if
(
typeTopByte
==
'\
u00A9
'
/* Copyright char */
||
typeTopByte
==
'\
uFFFD
'
/* Replacement char */
)
{
if
(
typeTopByte
==
TYPE_TOP_BYTE_COPYRIGHT
||
typeTopByte
==
TYPE_TOP_BYTE_REPLACEMENT
)
{
int
shortType
=
type
&
0x00FFFFFF
;
if
(
shortType
==
SHORT_TYPE_COMMENT
)
{
return
parseCommentAttribute
(
type
,
ilst
);
...
...
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