Changed the code accordingly

+ Removed some unused code
This commit is contained in:
litetex 2022-07-10 14:19:58 +02:00
parent 25a43b57b2
commit 8b209df253
35 changed files with 153 additions and 413 deletions

View file

@ -82,8 +82,8 @@ public class DataReader {
public long readLong() throws IOException {
primitiveRead(LONG_SIZE);
final long high
= primitive[0] << 24 | primitive[1] << 16 | primitive[2] << 8 | primitive[3];
final long high =
primitive[0] << 24 | primitive[1] << 16 | primitive[2] << 8 | primitive[3];
final long low = primitive[4] << 24 | primitive[5] << 16 | primitive[6] << 8 | primitive[7];
return high << 32 | low;
}

View file

@ -307,8 +307,8 @@ public class Mp4FromDashWriter {
outWrite(makeMdat(totalSampleSize, is64));
final int[] sampleIndex = new int[readers.length];
final int[] sizes
= new int[singleSampleBuffer > 0 ? singleSampleBuffer : SAMPLES_PER_CHUNK];
final int[] sizes =
new int[singleSampleBuffer > 0 ? singleSampleBuffer : SAMPLES_PER_CHUNK];
final int[] sync = new int[singleSampleBuffer > 0 ? singleSampleBuffer : SAMPLES_PER_CHUNK];
int written = readers.length;