diff --git a/libavformat/whip.c b/libavformat/whip.c index b5847f0a6b..9ed5b1f2a3 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -1911,7 +1911,7 @@ write_packet: if (now - whip->whip_last_consent_rx_time > WHIP_ICE_CONSENT_EXPIRED_TIMER * WHIP_US_PER_MS) { av_log(whip, AV_LOG_ERROR, "Consent Freshness expired after %.2fms (limited %dms), terminate session\n", - ELAPSED(now, whip->whip_last_consent_rx_time), WHIP_ICE_CONSENT_EXPIRED_TIMER); + ELAPSED(whip->whip_last_consent_rx_time, now), WHIP_ICE_CONSENT_EXPIRED_TIMER); ret = AVERROR(ETIMEDOUT); goto end; }