[vlc-commits] yadif: use uintptr_t when casting pointer to integer

Rémi Denis-Courmont git at videolan.org
Sun Mar 24 17:53:12 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 24 18:38:17 2013 +0200| [58c27cdb0180faa4bff4c3acb8ec7f46924bf68a] | committer: Rémi Denis-Courmont

yadif: use uintptr_t when casting pointer to integer

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

 modules/video_filter/deinterlace/yadif_template.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/deinterlace/yadif_template.h b/modules/video_filter/deinterlace/yadif_template.h
index 831e47b..87679c9 100644
--- a/modules/video_filter/deinterlace/yadif_template.h
+++ b/modules/video_filter/deinterlace/yadif_template.h
@@ -126,7 +126,7 @@ VLC_TARGET static void RENAME(yadif_filter_line)(uint8_t *dst,
                               int w, int prefs, int mrefs, int parity, int mode)
 {
     uint8_t tmpU[5*16];
-    uint8_t *tmp= (uint8_t*)(((uint64_t)(tmpU+15)) & ~15);
+    uint8_t *tmp= (uint8_t*)(((uintptr_t)(tmpU+15)) & ~15);
     int x;
 
 #define FILTER\



More information about the vlc-commits mailing list