[vlc-devel] [PATCH] access: rist: fix format for size_t

Alexandre Janniaux ajanni at videolabs.io
Wed Apr 1 18:35:50 CEST 2020


Fix a -Wformat warning on platforms with size_t != long unsigned.
---
 modules/access/rist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/rist.c b/modules/access/rist.c
index be4b0b8058..62ab5690b9 100644
--- a/modules/access/rist.c
+++ b/modules/access/rist.c
@@ -599,7 +599,7 @@ static bool rist_input(stream_t *p_access, struct rist_flow *flow, uint8_t *buf,
     if ( len < RTP_HEADER_SIZE )
     {
         /* check if packet size >= rtp header size */
-        msg_Err(p_access, "Rist rtp packet must have at least 12 bytes, we have %lu", len);
+        msg_Err(p_access, "Rist rtp packet must have at least 12 bytes, we have %zu", len);
         return false;
     }
     else if (!rtp_check_hdr(buf))
-- 
2.26.0



More information about the vlc-devel mailing list