From 6e022dcb069c5f31f5bf64a3551f84724d32f7f0 Mon Sep 17 00:00:00 2001 From: Raaj Date: Thu, 10 Jul 2014 17:44:40 -0700 Subject: [PATCH] Update facedetect.cpp Somebody forgot to add curly brackets --- samples/ocl/facedetect.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/ocl/facedetect.cpp b/samples/ocl/facedetect.cpp index 3781059..df9eff4 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; + } } } -- 2.7.4