Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef signed int Ipp32s;
- typedef unsigned int Ipp32u;
- Ipp32s StreamParser::GetTrackByPidOrCreateNew(Ipp32s iPid,
- bool *pIsNew)
- {
- ...
- else if (!pIsNew || m_uiTracks >= MAX_TRACK)
- return -1;
- ...
- }
- Status StreamParser::GetNextData(MediaData *pData,
- Ipp32u *pTrack)
- {
- ...
- *pTrack = GetTrackByPidOrCreateNew(m_pPacket->iPid, NULL);
- if (*pTrack >= 0 && TRACK_LPCM == m_pInfo[*pTrack]->m_Type)
- ippsSwapBytes_16u_I((Ipp16u *)pData->GetDataPointer(),
- m_pPacket->uiSize / 2);
- ...
- }
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression '* pTrack >= 0' is always true. Unsigned type value is always >= 0. demuxer umc_stream_parser.cpp 179
- 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