Advertisement
PVS-StudioWarnings

PVS-Studio warning V581 for WebM

Nov 21st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. static vpx_codec_err_t vp8e_encode(....)
  2. {
  3.   vpx_codec_err_t res = VPX_CODEC_OK;
  4.  
  5.   if (!ctx->cfg.rc_target_bitrate)
  6.     return res;
  7.  
  8.   if (!ctx->cfg.rc_target_bitrate)
  9.     return res;
  10.   ....
  11. }
  12.  
  13. This suspicious code was found in WebM project by PVS-Studio static code analyzer.
  14. Warning message is:
  15. V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 755, 758. vp8_cx_iface.c 758
  16.  
  17. 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