From c64ba996544fabb0d1d4a50f1e48ba4397b27f61 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 9 Jun 2021 01:45:44 -0500 Subject: [PATCH] Fix build on GCC/Clang --- src/RtpAudioQueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RtpAudioQueue.c b/src/RtpAudioQueue.c index 9312d46..fef3d13 100644 --- a/src/RtpAudioQueue.c +++ b/src/RtpAudioQueue.c @@ -395,7 +395,7 @@ static bool enforceQueueConstraints(PRTP_AUDIO_QUEUE queue) { // We will consider the FEC block irrecoverably lost if the entire duration of the // audio in the FEC block has elapsed (plus a little bit) without completing the block. - if (PltGetMillis() - queue->blockHead->queueTimeMs > (AudioPacketDuration * RTPA_DATA_SHARDS) + RTPQ_OOS_WAIT_TIME_MS) { + if (PltGetMillis() - queue->blockHead->queueTimeMs > (uint32_t)(AudioPacketDuration * RTPA_DATA_SHARDS) + RTPQ_OOS_WAIT_TIME_MS) { Limelog("Unable to recover audio data block %u to %u (%u+%u=%u received < %u needed)\n", queue->blockHead->fecHeader.baseSequenceNumber, queue->blockHead->fecHeader.baseSequenceNumber + RTPA_DATA_SHARDS - 1,