Removed unused StreamDataBox

This commit is contained in:
Dustin 2022-01-23 09:21:40 -07:00
parent b90333af02
commit 98b487eb31
2 changed files with 1 additions and 18 deletions

View file

@ -6,7 +6,7 @@ import java.nio.ByteBuffer;
import java.util.Arrays;
public class BoxFactory {
static int[] types = {AviHeaderBox.AVIH, StreamHeaderBox.STRH, StreamFormatBox.STRF, StreamDataBox.STRD};
static int[] types = {AviHeaderBox.AVIH, StreamHeaderBox.STRH, StreamFormatBox.STRF};
static {
Arrays.sort(types);
}

View file

@ -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;
}
}