From fd20e207f731067270325d7f925466cf4c1af345 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Tue, 14 Apr 2026 17:29:42 +0200 Subject: [PATCH] Fix printf format specifiers which cause issues on Windows see e.g Firefox, Chromium ran into the same problem: https://phabricator.services.mozilla.com/D289571 --- srtp/srtp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srtp/srtp.c b/srtp/srtp.c index 66bbde8a8..b6e8e5fcd 100644 --- a/srtp/srtp.c +++ b/srtp/srtp.c @@ -664,7 +664,8 @@ static srtp_err_status_t srtp_stream_clone( srtp_session_keys_t *session_keys = NULL; const srtp_session_keys_t *template_session_keys = NULL; - debug_print(mod_srtp, "cloning stream (SSRC: 0x%08x)", ntohl(ssrc)); + debug_print(mod_srtp, "cloning stream (SSRC: 0x%08x)", + (unsigned int)ntohl(ssrc)); /* allocate srtp stream and set str_ptr */ str = (srtp_stream_ctx_t *)srtp_crypto_alloc(sizeof(srtp_stream_ctx_t)); @@ -2782,7 +2783,7 @@ srtp_err_status_t srtp_unprotect_mki(srtp_ctx_t *ctx, if (ctx->stream_template != NULL) { stream = ctx->stream_template; debug_print(mod_srtp, "using provisional stream (SSRC: 0x%08x)", - ntohl(hdr->ssrc)); + (unsigned int)ntohl(hdr->ssrc)); /* * set estimated packet index to sequence number from header, @@ -4547,7 +4548,7 @@ srtp_err_status_t srtp_unprotect_rtcp_mki(srtp_t ctx, debug_print(mod_srtp, "srtcp using provisional stream (SSRC: 0x%08x)", - ntohl(hdr->ssrc)); + (unsigned int)ntohl(hdr->ssrc)); } else { /* no template stream, so we return an error */ return srtp_err_status_no_ctx;