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

Merge pull request #2336 from czgdp1807:issue-2333

* corrected scope of CV_Error()

* removed the return statement
parent 3146e4a4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -12,7 +12,10 @@ Ptr<NvidiaOpticalFlow_1_0> cv::cuda::NvidiaOpticalFlow_1_0::create(int, int, int

#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