Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Status VC1VideoDecoder::ResizeBuffer()
- {
- ...
- if(m_pContext && m_pContext->m_seqLayerHeader &&
- m_pContext->m_seqLayerHeader->heightMB &&
- m_pContext->m_seqLayerHeader->heightMB)
- ...
- }
- This is what should have been written here: m_pContext->m_seqLayerHeader->heightMB && m_pContext->m_seqLayerHeader->widthMB.
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions 'm_pContext->m_seqLayerHeader->heightMB' to the left and to the right of the '&&' operator. vc1_dec umc_vc1_video_decoder.cpp 1347
- 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