[vlc-commits] opencv_wrapper: don't call abs on unsigned values

Zhao Zhili git at videolan.org
Sat May 26 18:08:19 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Apr 27 10:36:36 2018 +0800| [4e435aeccdd16c51261cb82c3ec51b193905ba01] | committer: Jean-Baptiste Kempf

opencv_wrapper: don't call abs on unsigned values

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_filter/opencv_wrapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/opencv_wrapper.c b/modules/video_filter/opencv_wrapper.c
index ea1f96588c..6b25794a32 100644
--- a/modules/video_filter/opencv_wrapper.c
+++ b/modules/video_filter/opencv_wrapper.c
@@ -316,7 +316,7 @@ static void VlcPictureToIplImage( filter_t* p_filter, picture_t* p_in )
 {
     int planes = p_in->i_planes;    //num input video planes
     // input video size
-    CvSize sz = cvSize(abs(p_in->format.i_width), abs(p_in->format.i_height));
+    CvSize sz = cvSize(p_in->format.i_width, p_in->format.i_height);
     video_format_t fmt_out;
     filter_sys_t* p_sys = p_filter->p_sys;
 



More information about the vlc-commits mailing list