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
7a88829e
authored
Jan 17, 2022
by
OxygenCobalt
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Misc cleanup
Group up some other minor changes with the vorbis comment utils.
parent
b9191615
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/VorbisUtil.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/OpusReader.java
library/extractor/src/main/java/com/google/android/exoplayer2/metadata/vorbis/PictureFrame.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/VorbisUtil.java
View file @
7a88829e
...
@@ -331,7 +331,7 @@ public final class VorbisUtil {
...
@@ -331,7 +331,7 @@ public final class VorbisUtil {
* @param scratch The bytes of the picture.
* @param scratch The bytes of the picture.
* @return A picture frame from the scratch data.
* @return A picture frame from the scratch data.
*/
*/
public
static
PictureFrame
buildPictureFrame
(
ParsableByteArray
scratch
)
{
/* package */
static
PictureFrame
buildPictureFrame
(
ParsableByteArray
scratch
)
{
int
pictureType
=
scratch
.
readInt
();
int
pictureType
=
scratch
.
readInt
();
int
mimeTypeLength
=
scratch
.
readInt
();
int
mimeTypeLength
=
scratch
.
readInt
();
String
mimeType
=
scratch
.
readString
(
mimeTypeLength
,
Charsets
.
US_ASCII
);
String
mimeType
=
scratch
.
readString
(
mimeTypeLength
,
Charsets
.
US_ASCII
);
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/OpusReader.java
View file @
7a88829e
...
@@ -87,7 +87,6 @@ import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
...
@@ -87,7 +87,6 @@ import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
checkNotNull
(
setupData
.
format
);
// Has been set when the header was read
checkNotNull
(
setupData
.
format
);
// Has been set when the header was read
int
startPosition
=
packet
.
getPosition
();
int
startPosition
=
packet
.
getPosition
();
if
(!
validateCommentHeaderSignature
(
packet
))
{
if
(!
validateCommentHeaderSignature
(
packet
))
{
packet
.
setPosition
(
startPosition
);
packet
.
setPosition
(
startPosition
);
return
false
;
return
false
;
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/metadata/vorbis/PictureFrame.java
View file @
7a88829e
...
@@ -24,7 +24,7 @@ import com.google.android.exoplayer2.MediaMetadata;
...
@@ -24,7 +24,7 @@ import com.google.android.exoplayer2.MediaMetadata;
import
com.google.android.exoplayer2.metadata.Metadata
;
import
com.google.android.exoplayer2.metadata.Metadata
;
import
java.util.Arrays
;
import
java.util.Arrays
;
/** A picture parsed from a
FLAC file
. */
/** A picture parsed from a
Vorbis Comment or a FLAC metadata block
. */
public
class
PictureFrame
implements
Metadata
.
Entry
{
public
class
PictureFrame
implements
Metadata
.
Entry
{
/** The type of the picture. */
/** The type of the picture. */
...
...
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