From ff5f50e3ec78d5e034115d11faf2afbee5e61d56 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 13 Nov 2014 22:17:02 -0800 Subject: [PATCH] Assign the frame start time when we get a slow path frame --- .../src/com/limelight/nvstream/av/video/VideoDepacketizer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java b/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java index 5fc0c432..749513d9 100644 --- a/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java +++ b/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java @@ -360,6 +360,9 @@ public class VideoDepacketizer { && NAL.isAvcFrameStart(cachedSpecialDesc) && cachedSpecialDesc.data[cachedSpecialDesc.offset+cachedSpecialDesc.length] == 0x67) { + // The slow path doesn't update the frame start time by itself + frameStartTime = System.currentTimeMillis(); + // SPS and PPS prefix is padded between NALs, so we must decode it with the slow path addInputDataSlow(packet, cachedReassemblyDesc); }