Commit 7a88829e by OxygenCobalt

Misc cleanup

Group up some other minor changes with the vorbis comment utils.
parent b9191615
...@@ -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);
......
...@@ -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;
......
...@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment