From 6f5187a34badf5d0c510ecbf033eff1b178e9027 Mon Sep 17 00:00:00 2001 From: Daniele Sparano Date: Tue, 5 Dec 2023 14:57:00 +0000 Subject: [PATCH] Format to wake up PR --- .../main/java/androidx/media3/extractor/ts/H264Reader.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/extractor/src/main/java/androidx/media3/extractor/ts/H264Reader.java b/libraries/extractor/src/main/java/androidx/media3/extractor/ts/H264Reader.java index 795f9743dc..99ad187b05 100644 --- a/libraries/extractor/src/main/java/androidx/media3/extractor/ts/H264Reader.java +++ b/libraries/extractor/src/main/java/androidx/media3/extractor/ts/H264Reader.java @@ -253,8 +253,7 @@ public final class H264Reader implements ElementaryStreamReader { seiWrapper.setPosition(4); // NAL prefix and nal_unit() header. seiReader.consume(pesTimeUs, seiWrapper); } - boolean sampleIsKeyFrame = - sampleReader.endNalUnit(position, offset, hasOutputFormat); + boolean sampleIsKeyFrame = sampleReader.endNalUnit(position, offset, hasOutputFormat); if (sampleIsKeyFrame) { // This is either an IDR frame or the first I-frame since the random access indicator, so mark // it as a keyframe. Clear the flag so that subsequent non-IDR I-frames are not marked as @@ -483,8 +482,7 @@ public final class H264Reader implements ElementaryStreamReader { isFilling = false; } - public boolean endNalUnit( - long position, int offset, boolean hasOutputFormat) { + public boolean endNalUnit(long position, int offset, boolean hasOutputFormat) { if (nalUnitType == NalUnitUtil.NAL_UNIT_TYPE_AUD || (detectAccessUnits && sliceHeader.isFirstVclNalUnitOfPicture(previousSliceHeader))) { // If the NAL unit ending is the start of a new sample, output the previous one.