[vlc-commits] OpenCV example: drop an unused variable

Jean-Baptiste Kempf git at videolan.org
Sun Aug 12 00:57:21 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Aug 12 00:52:02 2012 +0200| [20751c54ed83b50894ab3c66d6499ee6920c92f2] | committer: Jean-Baptiste Kempf

OpenCV example: drop an unused variable

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

 modules/video_filter/opencv_example.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/video_filter/opencv_example.c b/modules/video_filter/opencv_example.c
index 9d55b32..bec3997 100644
--- a/modules/video_filter/opencv_example.c
+++ b/modules/video_filter/opencv_example.c
@@ -145,7 +145,6 @@ static void CloseFilter( vlc_object_t *p_this )
 static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
 {
     IplImage** p_img = NULL;
-    int i_planes = 0;
     CvPoint pt1, pt2;
     int i, scale = 1;
     filter_sys_t *p_sys = p_filter->p_sys;
@@ -157,7 +156,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     }
     //(hack) cast the picture_t to array of IplImage*
     p_img = (IplImage**) p_pic;
-    i_planes = p_pic->i_planes;
 
     //check the image array for validity
     if ((!p_img[0]))    //1st plane is 'I' i.e. greyscale



More information about the vlc-commits mailing list