mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-18 14:29:57 +00:00
Assign the frame start time when we get a slow path frame
This commit is contained in:
@@ -360,6 +360,9 @@ public class VideoDepacketizer {
|
|||||||
&& NAL.isAvcFrameStart(cachedSpecialDesc)
|
&& NAL.isAvcFrameStart(cachedSpecialDesc)
|
||||||
&& cachedSpecialDesc.data[cachedSpecialDesc.offset+cachedSpecialDesc.length] == 0x67)
|
&& 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
|
// SPS and PPS prefix is padded between NALs, so we must decode it with the slow path
|
||||||
addInputDataSlow(packet, cachedReassemblyDesc);
|
addInputDataSlow(packet, cachedReassemblyDesc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user