Fix integer truncation warning on MSVC

This commit is contained in:
Cameron Gutman
2022-12-06 17:33:43 -06:00
parent 5c7a5ce129
commit 9da6329496

View File

@@ -764,7 +764,7 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
}
if (!presentationTimeMs && frameIndex > 0) {
firstPacketPresentationTime = receiveTimeMs - syntheticPtsBase;
firstPacketPresentationTime = (unsigned int)(receiveTimeMs - syntheticPtsBase);
}
else {
firstPacketPresentationTime = presentationTimeMs;