Merge pull request #841 from thegobot/patch-8

SrsFlvFrameBytes constructor
camera2
Leo Ma 4 years ago committed by GitHub
commit 7f0fe5a82d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -409,6 +409,20 @@ public class SrsFlvMuxer {
private class SrsFlvFrameBytes {
public ByteBuffer data;
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