ref: 58f1fef520b85d84ff0f077fd05e3115d2a69bea
parent: 01fd220ef9f9c0859d02e35ec7f56cc5596dd137
author: Martin Storsjö <martin@martin.st>
date: Mon Jan 19 04:58:25 EST 2015
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.
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -2777,7 +2777,7 @@
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;