Commit a2542188 by Oliver Woodman

No-op format changes.

parent 87ca1b34
......@@ -787,18 +787,16 @@ public final class TsExtractor {
}
int spsLength = bitArray.findNextNalUnit(-1, spsOffset + 3) - spsOffset;
int ppsLength = bitArray.findNextNalUnit(-1, ppsOffset + 3) - ppsOffset;
byte[] spsData = new byte[spsLength];
byte[] ppsData = new byte[ppsLength];
System.arraycopy(bitArray.getData(), spsOffset, spsData, 0, spsLength);
System.arraycopy(bitArray.getData(), ppsOffset, ppsData, 0, ppsLength);
List<byte[]> initializationData = new ArrayList<byte[]>();
initializationData.add(spsData);
initializationData.add(ppsData);
// Unescape the SPS unit.
byte[] unescapedSps = unescapeData(spsData, 0, spsLength);
byte[] unescapedSps = unescapeStream(spsData, 0, spsLength);
bitArray.reset(unescapedSps, unescapedSps.length);
// Parse the SPS unit
......@@ -913,7 +911,7 @@ public final class TsExtractor {
* <p>
* See ISO/IEC 14496-10:2005(E) page 36 for more information.
*/
private byte[] unescapeData(byte[] data, int offset, int limit) {
private byte[] unescapeStream(byte[] data, int offset, int limit) {
int position = offset;
List<Integer> escapePositions = new ArrayList<Integer>();
while (position < limit) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment