Skip to content

Commit

Permalink
Format to wake up PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dsparano authored and tonihei committed Dec 11, 2023
1 parent 4a17ca7 commit 6f5187a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ private void endNalUnit(long position, int offset, int discardPadding, long pesT
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
Expand Down Expand Up @@ -483,8 +482,7 @@ public void appendToNalUnit(byte[] data, int offset, int limit) {
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.
Expand Down

0 comments on commit 6f5187a

Please sign in to comment.