|
|
@ -209,7 +209,7 @@ public class SrsEncoder {
|
|
|
|
|
|
|
|
|
|
|
|
public void onGetYuvFrame(byte[] data) {
|
|
|
|
public void onGetYuvFrame(byte[] data) {
|
|
|
|
// Check if the networking is good enough.
|
|
|
|
// Check if the networking is good enough.
|
|
|
|
if (publisher.getVideoFrameCacheNumber() < VGOP * 3) {
|
|
|
|
if (publisher.getVideoFrameCacheNumber() < VGOP * 2) {
|
|
|
|
preProcessYuvFrame(data);
|
|
|
|
preProcessYuvFrame(data);
|
|
|
|
ByteBuffer[] inBuffers = vencoder.getInputBuffers();
|
|
|
|
ByteBuffer[] inBuffers = vencoder.getInputBuffers();
|
|
|
|
ByteBuffer[] outBuffers = vencoder.getOutputBuffers();
|
|
|
|
ByteBuffer[] outBuffers = vencoder.getOutputBuffers();
|
|
|
@ -551,4 +551,4 @@ public class SrsEncoder {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return sb.toString();
|
|
|
|
return sb.toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|