First time here? Check out the FAQ!
answered 2013-08-07 03:07:26 -0600
what about:
input_video >> frame; if ( frame.empty() ) break;