修复问题

This commit is contained in:
2025-09-28 18:30:39 +08:00
parent 516f4e94c9
commit 1e5166c403
2 changed files with 35 additions and 2 deletions

View File

@@ -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);