Fixed loop check

This commit is contained in:
Maksim Shabunin 2015-07-22 17:54:42 +03:00
parent 14d7b38613
commit 46e457d340

View File

@ -106,7 +106,7 @@ void CV_VideoPositioningTest::generate_idx_seq(CvCapture* cap, int method)
{
RNG rng(N);
idx.clear();
for( int i = 0; i > 0 && i < N-1; i++ )
for( int i = 0; i >= 0 && i < N-1; i++ )
idx.push_back(rng.uniform(0, N));
idx.push_back(N-1);
std::swap(idx.at(rng.uniform(0, N-1)), idx.at(N-1));