Commit 98b487eb by Dustin

Removed unused StreamDataBox

parent b90333af
...@@ -6,7 +6,7 @@ import java.nio.ByteBuffer; ...@@ -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);
} }
......
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;
}
}
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