recfr.p_Vid = p_Vid;
VideoParameters *p_Vid1 = recfr.p_Vid;
StorablePicture* refPic = p_Vid1->ppSliceList[0]->listX[0][0];//p_Vid->ppSliceList[0]->listX[0][0];
if(p_Vid->dec_picture->frame_num == 8)
{
// Test for ssliceList
for(tempI = 0; tempI < refPic -> size_x; tempI++)
for(tempJ = 0; tempJ < refPic -> size_y; tempJ++)
refPic -> imgY[tempJ][tempI] = 0;
for(tempI = 0; tempI < (refPic -> size_x >> 1); tempI++)
for(tempJ = 0; tempJ < (refPic -> size_y >> 1); tempJ++)
{
refPic -> imgUV[0][tempJ][tempI] = 0;
refPic -> imgUV[1][tempJ][tempI] = 0;
}
}
From this simple test, we can see that the listX[0][0] is the decoding frame’s last display frame.