Update facedetect.cpp

Somebody forgot to add curly brackets
pull/2965/head
Raaj 11 years ago
parent 2df3abe16b
commit 6e022dcb06
  1. 3
      samples/ocl/facedetect.cpp

@ -93,11 +93,12 @@ static int facedetect_one_thread(bool useCPU, double scale )
if( image.empty() ) if( image.empty() )
{ {
capture = cvCaptureFromAVI( inputName.c_str() ); capture = cvCaptureFromAVI( inputName.c_str() );
if(!capture) if(!capture){
cout << "Capture from AVI didn't work" << endl; cout << "Capture from AVI didn't work" << endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} }
} }
}
if( capture ) if( capture )
{ {

Loading…
Cancel
Save