PVS-StudioWarnings

PVS-Studio warning V523 for IPP Samples

Nov 19th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. Ipp32s MeVC1::GetAcCoeffSize(....)
  2. {
  3.   if(luma)
  4.     tblSet = (MeACTablesSet*)&ACTablesSet[
  5.       CodingSetsInter[m_cur.qp8][m_cur.AcTableIndex]];
  6.   else
  7.     tblSet = (MeACTablesSet*)&ACTablesSet[
  8.       CodingSetsInter[m_cur.qp8][m_cur.AcTableIndex]];
  9. }
  10.  
  11. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V523 The 'then' statement is equivalent to the 'else' statement. me umc_me.cpp 3547
  14.  
  15. 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