Commit 61cbb445 authored by Gagandeep Singh's avatar Gagandeep Singh Committed by Alexander Alekhin

Merge pull request #2336 from czgdp1807:issue-2333

* corrected scope of CV_Error()

* removed the return statement
parent 3146e4a4
...@@ -12,7 +12,10 @@ Ptr<NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(int, int, int ...@@ -12,7 +12,10 @@ Ptr<NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(int, int, int
#elif !defined HAVE_NVIDIA_OPTFLOW #elif !defined HAVE_NVIDIA_OPTFLOW
CV_Error(cv::Error::HeaderIsNull, "Nvidia Optical Flow headers not found. Make sure cmake downloads it properly"); Ptr<NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(int, int, int, NVIDIA_OF_PERF_LEVEL, bool, bool)
{
CV_Error(cv::Error::HeaderIsNull, "OpenCV was build without NVIDIA OpticalFlow support");
}
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment