Reformat with google-java-format

This commit is contained in:
Ian Baker 2025-01-10 15:58:21 +00:00
parent ce0512845f
commit b2f9c1e252

View File

@ -287,7 +287,8 @@ public final class VobsubParser implements SubtitleParser {
|| !hasPlane || !hasPlane
|| !hasColors || !hasColors
|| boundingBox == null || boundingBox == null
|| dataOffset0 == C.INDEX_UNSET || dataOffset1 == C.INDEX_UNSET || dataOffset0 == C.INDEX_UNSET
|| dataOffset1 == C.INDEX_UNSET
|| boundingBox.width() < 2 || boundingBox.width() < 2
|| boundingBox.height() < 2) { || boundingBox.height() < 2) {
return null; return null;
@ -327,7 +328,8 @@ public final class VobsubParser implements SubtitleParser {
* @param evenInterlace Whether to decode the even or odd interlaced lines. * @param evenInterlace Whether to decode the even or odd interlaced lines.
* @param bitmapData Output array. * @param bitmapData Output array.
*/ */
private void parseRleData(ParsableBitArray bitBuffer, boolean evenInterlace, Rect boundingBox, int[] bitmapData) { private void parseRleData(
ParsableBitArray bitBuffer, boolean evenInterlace, Rect boundingBox, int[] bitmapData) {
int width = boundingBox.width(); int width = boundingBox.width();
int height = boundingBox.height(); int height = boundingBox.height();
int x = 0; int x = 0;
@ -346,7 +348,9 @@ public final class VobsubParser implements SubtitleParser {
} }
if (x >= width) { if (x >= width) {
y += 2; y += 2;
if (y >= height){ break;} if (y >= height) {
break;
}
x = 0; x = 0;
outIndex = y * width; outIndex = y * width;
bitBuffer.byteAlign(); bitBuffer.byteAlign();