Misc cleanup
Group up some other minor changes with the vorbis comment utils.
This commit is contained in:
parent
b9191615ee
commit
7a88829ea6
@ -331,7 +331,7 @@ public final class VorbisUtil {
|
||||
* @param scratch The bytes of the picture.
|
||||
* @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 mimeTypeLength = scratch.readInt();
|
||||
String mimeType = scratch.readString(mimeTypeLength, Charsets.US_ASCII);
|
||||
|
@ -87,7 +87,6 @@ import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
|
||||
checkNotNull(setupData.format); // Has been set when the header was read
|
||||
|
||||
int startPosition = packet.getPosition();
|
||||
|
||||
if (!validateCommentHeaderSignature(packet)) {
|
||||
packet.setPosition(startPosition);
|
||||
return false;
|
||||
|
@ -24,7 +24,7 @@ import com.google.android.exoplayer2.MediaMetadata;
|
||||
import com.google.android.exoplayer2.metadata.Metadata;
|
||||
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 {
|
||||
|
||||
/** The type of the picture. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user