mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Removed unused StreamDataBox
This commit is contained in:
parent
b90333af02
commit
98b487eb31
2 changed files with 1 additions and 18 deletions
|
|
@ -6,7 +6,7 @@ import java.nio.ByteBuffer;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
public class BoxFactory {
|
public class BoxFactory {
|
||||||
static int[] types = {AviHeaderBox.AVIH, StreamHeaderBox.STRH, StreamFormatBox.STRF, StreamDataBox.STRD};
|
static int[] types = {AviHeaderBox.AVIH, StreamHeaderBox.STRH, StreamFormatBox.STRF};
|
||||||
static {
|
static {
|
||||||
Arrays.sort(types);
|
Arrays.sort(types);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
package com.google.android.exoplayer2.extractor.avi;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
|
|
||||||
public class StreamDataBox extends ResidentBox {
|
|
||||||
//Stream CODEC data
|
|
||||||
static final int STRD = 's' | ('t' << 8) | ('r' << 16) | ('d' << 24);
|
|
||||||
|
|
||||||
StreamDataBox(int type, int size, ByteBuffer byteBuffer) {
|
|
||||||
super(type, size, byteBuffer);
|
|
||||||
}
|
|
||||||
byte[] getData() {
|
|
||||||
byte[] data = new byte[byteBuffer.capacity()];
|
|
||||||
System.arraycopy(byteBuffer.array(), 0, data, 0, data.length);
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue