Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MeBase::MakeVlcTableDecision()
- {
- ...
- Ipp32s BestMV =
- IPP_MIN(IPP_MIN(m_cur.MvRate[0],m_cur.MvRate[1]),
- IPP_MIN(m_cur.MvRate[2],m_cur.MvRate[3]));
- Ipp32s BestAC =
- IPP_MIN(IPP_MIN(m_cur.AcRate[0],m_cur.AcRate[1]),
- IPP_MIN(m_cur.AcRate[2],m_cur.AcRate[2]));
- ...
- }
- See the last string. The index at the end should be '3', not '2'. As a result, the error causes the minimum value to be estimated incorrectly at times.
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions to the left and to the right of the '<' operator: (m_cur.AcRate [2]) < (m_cur.AcRate [2]) me umc_me.cpp 898
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment