History

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.

Martin Storsjö committed 11 years ago

Commit 58f1fef1 parent 01fd2201 file · +1 −1Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+1−1
@@ -2777,7 +2777,7 @@ TEST_F (EncodeDecodeTestAPI, ParameterSetStrategy_SPS_LISTING_AND_PPS_INCREASING · 2776 unmodified lines
27772777 do {
27782778 sParam2.iPicWidth = GetRandWidth();
27792779 vWidthTableIt = std::find (vWidthTable.begin(), vWidthTable.end(), sParam2.iPicWidth);
2780− } while (vWidthTableIt == vWidthTable.end());
2780+ } while (vWidthTableIt != vWidthTable.end());
27812781 vWidthTable.push_back (sParam2.iPicWidth);
27822782 prepareParam (iSpatialLayerNum, iSliceNum, sParam2.iPicWidth, sParam2.iPicHeight, fFrameRate, &sParam2);
27832783 sParam2.eSpsPpsIdStrategy = SPS_LISTING_AND_PPS_INCREASING;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t