PVS-StudioWarnings

PVS-Studio warning V537 for IPP Samples

Nov 17th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.82 KB | None | 0 0
  1. Ipp32s ippVideoEncoderMPEG4::Init(mp4_Param *par)
  2. {
  3.   ...
  4.   VOL.obmc_disable = par->obmc_disable;
  5.   VOL.sprite_enable = par->sprite_enable;
  6.   VOL.sprite_width = par->sprite_width;
  7.   VOL.sprite_height = par->sprite_height;
  8.   VOL.sprite_left_coordinate = par->sprite_left_coordinate;
  9.   VOL.sprite_top_coordinate = par->sprite_left_coordinate;
  10.   ...
  11. }
  12.  
  13. An object copying error. The programmer made a misprint and typed a wrong variable.
  14.  
  15. This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
  16. Warning message is:
  17. V537 Consider reviewing the correctness of 'sprite_left_coordinate' item's usage. mpeg4_enc mp4_enc_misc.cpp 387
  18.  
  19. 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