[vlc-commits] access: rist: fix format for size_t

Alexandre Janniaux git at videolan.org
Wed Apr 1 18:41:20 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Apr  1 18:35:50 2020 +0200| [fe9517f53c98f43972480c93eb770f00f368c19b] | committer: Tristan Matthews

access: rist: fix format for size_t

Fix a -Wformat warning on platforms with size_t != long unsigned.

Signed-off-by: Tristan Matthews <tmatth at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe9517f53c98f43972480c93eb770f00f368c19b
---

 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))



More information about the vlc-commits mailing list