Changeset 931 in SHVCSoftware for branches/SHM-upgrade/source/App/TAppDecoder/TAppDecTop.cpp
- Timestamp:
- 17 Dec 2014, 01:39:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/App/TAppDecoder/TAppDecTop.cpp
r928 r931 1436 1436 1437 1437 TComDigest recon_digest; 1438 calcMD5(*pic->getPicYuvRec(), recon_digest);1439 fprintf(fptr, "%8d%9d MD5:%s\n", pic->getLayerId(), pic->getSlice(0)->getPOC(), digestToString(recon_digest, 16));1438 Int numChar = calcMD5(*pic->getPicYuvRec(), recon_digest); 1439 fprintf(fptr, "%8d%9d MD5:%s\n", pic->getLayerId(), pic->getSlice(0)->getPOC(), digestToString(recon_digest, numChar).c_str()); 1440 1440 fclose(fptr); 1441 1441 … … 1461 1461 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1462 1462 #endif 1463 std::vector<TComPic>::iterator it erPic;1464 for(it erPic = layerBuffer->begin(); iterPic != layerBuffer->end(); iterPic++)1465 { 1466 TComPic checkPic = *it erPic;1463 std::vector<TComPic>::iterator itPic; 1464 for(itPic = layerBuffer->begin(); itPic != layerBuffer->end(); itPic++) 1465 { 1466 TComPic checkPic = *itPic; 1467 1467 if( checkPic.getPOC() <= pic->getPOC() ) 1468 1468 { … … 1473 1473 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 1474 1474 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 1475 layerBuffer->erase(it erPic);1476 it erPic = layerBuffer->begin(); // Ensure doesn't go to infinite loop1475 layerBuffer->erase(itPic); 1476 itPic = layerBuffer->begin(); // Ensure doesn't go to infinite loop 1477 1477 if(layerBuffer->size() == 0) 1478 1478 {
Note: See TracChangeset for help on using the changeset viewer.