﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
599	Long term reference pictures (LTRPs) and MSB cycle presence	adarsh		"There are two locations where the MSB-cycle presence is not checked for LTRPs.

1. The first location is in TComSlice.cpp::checkThatAllRefPicsAreAvailable(), line 984. Similar to the check in line 960, the presence of MSB cycle should be checked here. 

        if((rpcPic->getPicSym()->getSlice(0)->getPOC()%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC())) == (this->getPOC() + pReferencePictureSet->getDeltaPOC(i))%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC()) && rpcPic->getSlice(0)->isReferenced())


2. The second occurrence is also in TComSlice.cpp, in the function setRefPicList(). In line 429, the function  xGetLongTermRefPic(rcListPic, m_pcRPS->getPOC(i)) is used to fetch the long-term reference picture, but again no check is made for MSB-cycle presence. 

NOTE: The attached patch file was created with respect to HM7.1 (r2479)"	defect	closed	minor	HM-10.1	HM	HM-7.0	fixed		fbossen ksuehring davidf jct-vc@…
