The SequenceParameterSet is struct type, and not init while new.
if (naluHeader.mH265NalUnitType == H265NalUnitType::SPS){
SequenceParameterSet sps = new SequenceParameterSet;
printf("[%s-%d]%p mSpsInferScalingListFlag(%d)\n", func, LINE, this, sps->mSpsInferScalingListFlag);
parseSPS(bitstr, sps, naluHeader);
removeSps(sps->mSpsId);
mSpsList.push_back(sps);
}
Then print log is:
[parseNalUnit-457]0x7ffeefbfd7e8 mSpsInferScalingListFlag(66301659)
The SequenceParameterSet is struct type, and not init while new. if (naluHeader.mH265NalUnitType == H265NalUnitType::SPS){
SequenceParameterSet sps = new SequenceParameterSet; printf("[%s-%d]%p mSpsInferScalingListFlag(%d)\n", func, LINE, this, sps->mSpsInferScalingListFlag); parseSPS(bitstr, sps, naluHeader); removeSps(sps->mSpsId); mSpsList.push_back(sps); }
Then print log is: [parseNalUnit-457]0x7ffeefbfd7e8 mSpsInferScalingListFlag(66301659)