[vlc-commits] access: rtp: fix print descriptor for size

Alexandre Janniaux git at videolan.org
Tue May 19 16:21:01 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon May  4 18:57:33 2020 +0200| [5c82ce11de6e1e2cd99de9efbcf3269c8d7b2d87] | committer: Alexandre Janniaux

access: rtp: fix print descriptor for size

Size is an uint64_t because of vlc_stream_GetSize, not a size_t.

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

 modules/access/rtp/rtp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 08c8abcb69..4cbbd3c4ba 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -171,7 +171,7 @@ static int OpenSDP(vlc_object_t *obj)
     if (vlc_stream_GetSize(demux->s, &size))
         size = 65536;
     else if (size > 65536) {
-        msg_Err(obj, "SDP description too large: %zu bytes", size);
+        msg_Err(obj, "SDP description too large: %" PRIu64 " bytes", size);
         return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list