From a0d27eefaf406e95b1325e3da09c336385fa3edc Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 25 Mar 2017 03:47:52 +0000 Subject: [PATCH 1/2] Fix uninitialized variable --- lib/StreamHandlerLibav.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/StreamHandlerLibav.cpp b/lib/StreamHandlerLibav.cpp index ee22b41..3a23009 100644 --- a/lib/StreamHandlerLibav.cpp +++ b/lib/StreamHandlerLibav.cpp @@ -304,7 +304,7 @@ Int StreamHandlerLibav::decodeVideoPkt( Bool& gotFrame ) { gotFrame = false; - Int decResult; + Int decResult = 0; if( m_cPacket.stream_index == m_iStreamIdx ) { #ifdef FF_SEND_RECEIVE_API From 0dbd572009170ed15438c7a632e88cfafdc72fda Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 25 Mar 2017 03:55:14 +0000 Subject: [PATCH 2/2] Try fix VideoCapture problem --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c5c853..14e5c33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,7 +102,7 @@ ENDIF() OPTION( USE_OPENCV "Add OpenCV support" ON ) SET( OPENCV_OPTFLOW_FOUND OFF ) IF( USE_OPENCV ) - LIST(APPEND OPENCV_MODULES core highgui imgproc video ) + LIST(APPEND OPENCV_MODULES core highgui imgproc video videoio ) FIND_PACKAGE( OpenCV COMPONENTS ${OPENCV_MODULES} ) SET(USE_OPENCV ${OpenCV_FOUND}) ENDIF()