Advertisement
PVS-StudioWarnings

PVS-Studio warning V519 for OpenH264

Nov 24th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. static inline int32_t FmoGenerateSliceGroup (....)
  2. {
  3.   ....
  4.   int32_t iNumMb = 0;
  5.   ....
  6.   iNumMb = pFmo->iCountMbNum;
  7.   iNumMb = kiMbWidth * kiMbHeight;
  8.   ....
  9. }
  10.  
  11. This suspicious code was found in OpenH264 project by PVS-Studio static code analyzer.
  12. Warning message is:
  13. V519 The 'iNumMb' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 127, 129. fmo.cpp 129
  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
Advertisement