[vlc-devel] [PATCH] opencv_wrapper: Kill a warning

Edward Wang edward.c.wang at compdigitec.com
Sun Aug 12 01:17:45 CEST 2012


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

diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c
index ed535e2..1227353 100644
--- a/modules/video_filter/opencv_wrapper.c
+++ b/modules/video_filter/opencv_wrapper.c
@@ -421,7 +421,7 @@ static picture_t* Filter( filter_t* p_filter, picture_t* p_pic )
     VlcPictureToIplImage( p_filter, p_pic );
     // Pass the image (as a pointer to the first IplImage*) to the
     // internal OpenCV filter for processing.
-    p_filter->p_sys->p_opencv->pf_video_filter( p_filter->p_sys->p_opencv, &(p_filter->p_sys->p_cv_image[0]) );
+    p_filter->p_sys->p_opencv->pf_video_filter( p_filter->p_sys->p_opencv, (picture_t*)&(p_filter->p_sys->p_cv_image[0]) );
 
     if(p_filter->p_sys->i_wrapper_output == PROCESSED) {
         // Processed video
-- 
1.7.5.4




More information about the vlc-devel mailing list