[vlc-devel] [PATCH 1/3] opencv_wrapper: don't call abs on unsigned values
Zhao Zhili
quinkblack at foxmail.com
Fri Apr 27 04:36:36 CEST 2018
---
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 f4d7be7..567ac30 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;
--
2.9.5
More information about the vlc-devel
mailing list