Inconsistent content in m_savedRdModeList and m_modeCostStore
The modes stored in m_savedRdModeList and costs stored in m_modeCostStore sometimes get out of sync. This happens in Inter frames when uiRdModeList is pruned and less than m_savedNumRdModes[lfnstIdx] RD checks are made. In this case the later values in m_modeCostStore are not updated but still refer to "random" earlier costs checked for earlier PUs and in some cases even earlier inter frames. This can cause the results of the split mode parallel encoding and straight up full encoding to differ.
Merge request is provided to fix the issue.