修复问题
This commit is contained in:
@@ -480,8 +480,8 @@ public class MediaTransferFlvByJavacv extends MediaTransfer implements Runnable
|
||||
}
|
||||
|
||||
// 记录帧
|
||||
if (frame != null) {
|
||||
long now = System.currentTimeMillis();
|
||||
if (frame != null) { long now = System.currentTimeMillis();
|
||||
|
||||
if (startTime == 0) startTime = now;
|
||||
videoTS = 1000 * (now - startTime);
|
||||
if (videoTS > recorder.getTimestamp()) recorder.setTimestamp(videoTS);
|
||||
|
||||
Reference in New Issue
Block a user