diff --git a/samples/ocl/facedetect.cpp b/samples/ocl/facedetect.cpp index 378105906e..df9eff47cc 100644 --- a/samples/ocl/facedetect.cpp +++ b/samples/ocl/facedetect.cpp @@ -93,9 +93,10 @@ static int facedetect_one_thread(bool useCPU, double scale ) if( image.empty() ) { capture = cvCaptureFromAVI( inputName.c_str() ); - if(!capture) + if(!capture){ cout << "Capture from AVI didn't work" << endl; - return EXIT_FAILURE; + return EXIT_FAILURE; + } } }