Use uint64_t for DECODE_UNIT presentationTimeMs
This still holds a millisecond value sourced from RTP timestamp, but since we're changing the API anyway, now is a good time to future-proof this field.
This commit is contained in:
parent
82ee2d6590
commit
a3ebaaf015
3 changed files with 6 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ static bool strictIdrFrameWait;
|
|||
static uint64_t syntheticPtsBaseUs;
|
||||
static uint16_t frameHostProcessingLatency;
|
||||
static uint64_t firstPacketReceiveTimeUs;
|
||||
static unsigned int firstPacketPresentationTime;
|
||||
static uint64_t firstPacketPresentationTime;
|
||||
static bool dropStatePending;
|
||||
static bool idrFrameProcessed;
|
||||
|
||||
|
|
@ -832,10 +832,10 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
|||
}
|
||||
|
||||
if (!presentationTimeMs && frameIndex > 0) {
|
||||
firstPacketPresentationTime = (unsigned int)((receiveTimeUs - syntheticPtsBaseUs) / 1000);
|
||||
firstPacketPresentationTime = (receiveTimeUs - syntheticPtsBaseUs) / 1000;
|
||||
}
|
||||
else {
|
||||
firstPacketPresentationTime = (unsigned int)presentationTimeMs;
|
||||
firstPacketPresentationTime = presentationTimeMs;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue