mirror of
https://github.com/androidx/media.git
synced 2025-05-18 13:09:56 +08:00
Format to wake up PR
This commit is contained in:
parent
4a17ca7600
commit
6f5187a34b
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user