From: Alexander Reshetnikov Date: Wed, 28 Mar 2012 14:05:26 +0000 (+0000) Subject: Minor refactoring of video i/o tests: fixed error with indexes X-Git-Tag: accepted/2.0/20130307.220821~958 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76852a499d1404f94fc6e253f4808d1a85be89ba;p=profile%2Fivi%2Fopencv.git Minor refactoring of video i/o tests: fixed error with indexes --- diff --git a/modules/highgui/test/test_video_io.cpp b/modules/highgui/test/test_video_io.cpp index b91773a..5a75143 100644 --- a/modules/highgui/test/test_video_io.cpp +++ b/modules/highgui/test/test_video_io.cpp @@ -457,7 +457,7 @@ void CV_HighGuiTest::SpecificVideoFileTest(const string& dir, const char codecch if (frame.empty()) { ts->printf(ts->LOG, "\nVideo file directory: %s\n", (dir+"../../../../").c_str()); - ts->printf(ts->LOG, "File name: video_%s.%s\n", string(&codecchars[0], 4).c_str(), ext[i].c_str()); + ts->printf(ts->LOG, "File name: video_%s.%s\n", string(&codecchars[0], 4).c_str(), ext[j].c_str()); ts->printf(ts->LOG, "Video codec: %s\n", string(&codecchars[0], 4).c_str()); ts->printf(ts->LOG, "Error: cannot read the next frame with index %d.\n", i+1); ts->set_failed_test_info(ts->FAIL_MISSING_TEST_DATA);