mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Assign the frame start time when we get a slow path frame
This commit is contained in:
parent
022a08f5a1
commit
ff5f50e3ec
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user