[vlc-commits] RTP out: fix warning

Rémi Denis-Courmont git at videolan.org
Thu May 12 17:24:56 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 12 18:21:37 2011 +0300| [961fae15c74ced40284772d645094a90df8ad838] | committer: Rémi Denis-Courmont

RTP out: fix warning

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

 modules/stream_out/rtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index d33a0bd..8c21bad 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1551,7 +1551,7 @@ static int64_t rtp_init_ts( const vod_media_t *p_media,
     uint64_t i_ts_init;
     /* As per RFC 2326, session identifiers are at least 8 bytes long */
     strncpy((char *)&i_ts_init, psz_vod_session, sizeof(uint64_t));
-    i_ts_init ^= (uint64_t) p_media;
+    i_ts_init ^= (uintptr_t)p_media;
     /* Limit the timestamp to 48 bytes, this is enough and allows us
      * to stay away from overflows */
     i_ts_init &= 0xFFFFFFFFFFFF;



More information about the vlc-commits mailing list