[vlc-commits] yadif: fix invalid function pointer conversion

Rémi Denis-Courmont git at videolan.org
Mon Feb 26 19:50:21 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 26 20:46:04 2018 +0200| [87724691c899a02d94fb64a3ef16868d65f3551b] | committer: Rémi Denis-Courmont

yadif: fix invalid function pointer conversion

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

 modules/video_filter/deinterlace/yadif.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/video_filter/deinterlace/yadif.h b/modules/video_filter/deinterlace/yadif.h
index dfd3a765c8..4bc592ba93 100644
--- a/modules/video_filter/deinterlace/yadif.h
+++ b/modules/video_filter/deinterlace/yadif.h
@@ -139,7 +139,11 @@ static void yadif_filter_line_c(uint8_t *dst, uint8_t *prev, uint8_t *cur, uint8
     FILTER
 }
 
-static void yadif_filter_line_c_16bit(uint16_t *dst, uint16_t *prev, uint16_t *cur, uint16_t *next, int w, int prefs, int mrefs, int parity, int mode) {
+static void yadif_filter_line_c_16bit(uint8_t *dst8, uint8_t *prev8, uint8_t *cur8, uint8_t *next8, int w, int prefs, int mrefs, int parity, int mode) {
+    uint8_t *dst = (uint8_t *)dst8;
+    uint8_t *prev = (uint8_t *)prev8;
+    uint8_t *cur = (uint8_t *)cur8;
+    uint8_t *next = (uint8_t *)next8;
     int x;
     uint16_t *prev2= parity ? prev : cur ;
     uint16_t *next2= parity ? cur  : next;



More information about the vlc-commits mailing list