[vlc-devel] [PATCH] access: rtp: fix print descriptor for size
Alexandre Janniaux
ajanni at videolabs.io
Mon May 4 19:16:51 CEST 2020
Size is an uint64_t because of vlc_stream_GetSize, not a size_t.
---
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 08c8abcb694..4cbbd3c4ba6 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;
}
--
2.26.2
More information about the vlc-devel
mailing list