SrsFlvFrameBytes constructor

camera2
thegobot 4 years ago committed by GitHub
parent 7f6312a034
commit b1cb9348cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -409,6 +409,20 @@ public class SrsFlvMuxer {
private class SrsFlvFrameBytes { private class SrsFlvFrameBytes {
public ByteBuffer data; public ByteBuffer data;
public int size; public int size;
SrsFlvFrameBytes(){
}
SrsFlvFrameBytes(ByteBuffer buff){
int size = buff.capacity();
byte[] bytes = new byte[size];
buff.get(bytes);
this.data = ByteBuffer.wrap(bytes);
this.size = size;
}
} }
/** /**

Loading…
Cancel
Save