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.
This commit is contained in:
Martin Storsjö 2015-01-19 09:58:25 +02:00
parent 01fd220ef9
commit 58f1fef520

View File

@ -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;