Searched refs:tsData (Results 1 – 1 of 1) sorted by relevance
464 private boolean feedTSPacket(byte[] tsData, int pos) { in feedTSPacket() argument465 if (tsData.length < pos + TS_PACKET_SIZE) { in feedTSPacket()469 if (tsData[pos] != TS_PACKET_START_CODE) { in feedTSPacket()473 if ((tsData[pos + 1] & TS_PACKET_TEI_MASK) != 0) { in feedTSPacket()479 int pid = ((tsData[pos + 1] & 0x1f) << 8) | (tsData[pos + 2] & 0xff); in feedTSPacket()480 boolean hasAdaptation = (tsData[pos + 3] & 0x20) != 0; in feedTSPacket()481 boolean hasPayload = (tsData[pos + 3] & 0x10) != 0; in feedTSPacket()482 boolean payloadStartIndicator = (tsData[pos + 1] & 0x40) != 0; in feedTSPacket()483 int continuityCounter = tsData[pos + 3] & 0x0f; in feedTSPacket()486 payloadPos += hasAdaptation ? 5 + (tsData[pos + 4] & 0xff) : 4; in feedTSPacket()[all …]