Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool H264_AU_Stream::IsPictureSame(
- H264SliceHeaderParse & p_newHeader)
- {
- if ((p_newHeader.frame_num !=
- m_lastSlice.frame_num) ||
- (p_newHeader.pic_parameter_set_id !=
- p_newHeader.pic_parameter_set_id) ||
- (p_newHeader.field_pic_flag !=
- p_newHeader.field_pic_flag) ||
- (p_newHeader.bottom_field_flag !=
- m_lastSlice.bottom_field_flag)
- ){
- return false;
- }
- ...
- }
- The code is formatted. That's why the error is clearly seen. In reality, such errors are difficult to find. 'p_newHeader' is used in two places instead of 'm_lastSlice' here.
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions 'p_newHeader.pic_parameter_set_id' to the left and to the right of the '!=' operator. h264_spl umc_h264_au_stream.cpp 478
- 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