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.
Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2777,7 +2777,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 2776 unmodified lines | |||
| 2777 | do { | 2777 | do { |
| 2778 | sParam2.iPicWidth = GetRandWidth(); | 2778 | sParam2.iPicWidth = GetRandWidth(); |
| 2779 | vWidthTableIt = std::find (vWidthTable.begin(), vWidthTable.end(), sParam2.iPicWidth); | 2779 | vWidthTableIt = std::find (vWidthTable.begin(), vWidthTable.end(), sParam2.iPicWidth); |
| 2780 | } while (vWidthTableIt == vWidthTable.end()); | 2780 | } while (vWidthTableIt != vWidthTable.end()); |
| 2781 | vWidthTable.push_back (sParam2.iPicWidth); | 2781 | vWidthTable.push_back (sParam2.iPicWidth); |
| 2782 | prepareParam (iSpatialLayerNum, iSliceNum, sParam2.iPicWidth, sParam2.iPicHeight, fFrameRate, &sParam2); | 2782 | prepareParam (iSpatialLayerNum, iSliceNum, sParam2.iPicWidth, sParam2.iPicHeight, fFrameRate, &sParam2); |
| 2783 | sParam2.eSpsPpsIdStrategy = SPS_LISTING_AND_PPS_INCREASING; | 2783 | sParam2.eSpsPpsIdStrategy = SPS_LISTING_AND_PPS_INCREASING; |