Replace magic number

Signed-off-by: Leo Ma <begeekmyfriend@gmail.com>
camera2
Leo Ma 9 years ago
parent 6080e3d72c
commit a361ef4fd4

@ -52,7 +52,7 @@ public class SrsPublisher {
lastTimeMillis = System.nanoTime() / 1000000;
videoFrameCount++;
} else {
if (++videoFrameCount >= 48) {
if (++videoFrameCount >= SrsEncoder.VGOP) {
long diffTimeMillis = System.nanoTime() / 1000000 - lastTimeMillis;
mSamplingFps = (double) videoFrameCount * 1000 / diffTimeMillis;
videoFrameCount = 0;

Loading…
Cancel
Save