Format with google-java-format

This commit is contained in:
microkatz 2023-08-17 11:09:29 +00:00
parent ee1b1500e2
commit c72ec74e11
2 changed files with 18 additions and 10 deletions

View File

@ -1022,7 +1022,7 @@ public class MatroskaExtractor implements Extractor {
case ID_COLOUR_BITS_PER_CHANNEL:
assertInTrackEntry(id);
currentTrack.hasColorInfo = true;
currentTrack.bitsPerChannel = (int)value;
currentTrack.bitsPerChannel = (int) value;
break;
case ID_COLOUR_RANGE:
assertInTrackEntry(id);
@ -2308,7 +2308,14 @@ public class MatroskaExtractor implements Extractor {
@Nullable ColorInfo colorInfo = null;
if (hasColorInfo) {
@Nullable byte[] hdrStaticInfo = getHdrStaticInfo();
colorInfo = new ColorInfo(colorSpace, colorRange, colorTransfer, hdrStaticInfo, bitsPerChannel, bitsPerChannel);
colorInfo =
new ColorInfo(
colorSpace,
colorRange,
colorTransfer,
hdrStaticInfo,
bitsPerChannel,
bitsPerChannel);
}
int rotationDegrees = Format.NO_VALUE;

View File

@ -1224,7 +1224,8 @@ import java.util.List;
ExtractorUtil.checkContainerInput(mimeType == null, /* message= */ null);
mimeType = MimeTypes.VIDEO_AV1;
parent.setPosition(childStartPosition + Atom.HEADER_SIZE);
parent.skipBytes(1); ; // marker(1), version(7)
parent.skipBytes(1);
; // marker(1), version(7)
int byte2 = parent.readUnsignedByte();
int seqProfile = byte2 >> 5;
int byte3 = parent.readUnsignedByte();