Use inclusive language
This commit is contained in:
parent
1ab91a64c2
commit
0a436ad491
@ -161,12 +161,12 @@ public final class PesReader implements TsPayloadReader {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if the parser can consume a dummy end of input indication.
|
||||
* Determines if the parser can consume a synthesized empty pusi.
|
||||
*
|
||||
* @param isModeHls {@code True} if operating in HLS (HTTP Live Streaming) mode, {@code false}
|
||||
* otherwise.
|
||||
*/
|
||||
public boolean canConsumeDummyEndOfInput(boolean isModeHls) {
|
||||
public boolean canConsumeSynthesizedEmptyPusi(boolean isModeHls) {
|
||||
// Pusi only payload to trigger end of sample data is only applicable if
|
||||
// pes does not have a length field and body is being read, another exclusion
|
||||
// is due to H262 streams possibly having, in HLS mode, a pes across more than one segment
|
||||
|
@ -448,12 +448,12 @@ public final class TsExtractor implements Extractor {
|
||||
}
|
||||
|
||||
if (!fillBufferWithAtLeastOnePacket(input)) {
|
||||
// Send a synthesised empty pusi to allow for packetFinished to be triggered on the last unit.
|
||||
// Send a synthesized empty pusi to allow for packetFinished to be triggered on the last unit.
|
||||
for (int i = 0; i < tsPayloadReaders.size(); i++) {
|
||||
TsPayloadReader payloadReader = tsPayloadReaders.valueAt(i);
|
||||
if (payloadReader instanceof PesReader) {
|
||||
PesReader pesReader = (PesReader) payloadReader;
|
||||
if (pesReader.canConsumeDummyEndOfInput(isModeHls)) {
|
||||
if (pesReader.canConsumeSynthesizedEmptyPusi(isModeHls)) {
|
||||
pesReader.consume(new ParsableByteArray(), FLAG_PAYLOAD_UNIT_START_INDICATOR);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user