From 58f1fef520b85d84ff0f077fd05e3115d2a69bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 19 Jan 2015 09:58:25 +0200 Subject: [PATCH] Fix a comparison in ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING3 Previously, this test picked a width at random until it found a width that had been used before, meaning that all tests were made with the same single width. --- test/api/encode_decode_api_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api/encode_decode_api_test.cpp b/test/api/encode_decode_api_test.cpp index 27091e93..848eaedc 100644 --- a/test/api/encode_decode_api_test.cpp +++ b/test/api/encode_decode_api_test.cpp @@ -2777,7 +2777,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING do { sParam2.iPicWidth = GetRandWidth(); vWidthTableIt = std::find (vWidthTable.begin(), vWidthTable.end(), sParam2.iPicWidth); - } while (vWidthTableIt == vWidthTable.end()); + } while (vWidthTableIt != vWidthTable.end()); vWidthTable.push_back (sParam2.iPicWidth); prepareParam (iSpatialLayerNum, iSliceNum, sParam2.iPicWidth, sParam2.iPicHeight, fFrameRate, &sParam2); sParam2.eSpsPpsIdStrategy = SPS_LISTING_AND_PPS_INCREASING;