Fix integer truncation warning on MSVC

This commit is contained in:
Cameron Gutman 2022-12-06 17:33:43 -06:00
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;