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
e612511a
authored
Apr 01, 2019
by
bachinger
Committed by
Oliver Woodman
Apr 01, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
take byte offset into account when unsynchronizing an id3 frame
Issue #5673 PiperOrigin-RevId: 241328598
parent
5fd4fddf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/Id3Decoder.java
RELEASENOTES.md
View file @
e612511a
...
@@ -90,7 +90,8 @@
...
@@ -90,7 +90,8 @@
*
Prevent seeking when ICY metadata is present to prevent playback problems
*
Prevent seeking when ICY metadata is present to prevent playback problems
(
[
#5658
](
https://github.com/google/ExoPlayer/issues/5658
)
).
(
[
#5658
](
https://github.com/google/ExoPlayer/issues/5658
)
).
*
Use full BCP 47 language tags in
`Format`
.
*
Use full BCP 47 language tags in
`Format`
.
*
Select audio track based on system language if no preference is provided.
*
Take byte offset into account when unsynchronizing an id3 frame
(
[
#5673
](
https://github.com/google/ExoPlayer/issues/5673
)
).
### 2.9.6 ###
### 2.9.6 ###
...
...
library/core/src/main/java/com/google/android/exoplayer2/metadata/id3/Id3Decoder.java
View file @
e612511a
...
@@ -713,9 +713,11 @@ public final class Id3Decoder implements MetadataDecoder {
...
@@ -713,9 +713,11 @@ public final class Id3Decoder implements MetadataDecoder {
*/
*/
private
static
int
removeUnsynchronization
(
ParsableByteArray
data
,
int
length
)
{
private
static
int
removeUnsynchronization
(
ParsableByteArray
data
,
int
length
)
{
byte
[]
bytes
=
data
.
data
;
byte
[]
bytes
=
data
.
data
;
for
(
int
i
=
data
.
getPosition
();
i
+
1
<
length
;
i
++)
{
int
startPosition
=
data
.
getPosition
();
for
(
int
i
=
startPosition
;
i
+
1
<
startPosition
+
length
;
i
++)
{
if
((
bytes
[
i
]
&
0xFF
)
==
0xFF
&&
bytes
[
i
+
1
]
==
0x00
)
{
if
((
bytes
[
i
]
&
0xFF
)
==
0xFF
&&
bytes
[
i
+
1
]
==
0x00
)
{
System
.
arraycopy
(
bytes
,
i
+
2
,
bytes
,
i
+
1
,
length
-
i
-
2
);
int
relativePosition
=
i
-
startPosition
;
System
.
arraycopy
(
bytes
,
i
+
2
,
bytes
,
i
+
1
,
length
-
relativePosition
-
2
);
length
--;
length
--;
}
}
}
}
...
...
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