Skip to content
Snippets Groups Projects
Commit a361ef4f authored by Leo Ma's avatar Leo Ma
Browse files

Replace magic number


Signed-off-by: default avatarLeo Ma <begeekmyfriend@gmail.com>
parent 6080e3d7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment