Changeset 931 in SHVCSoftware


Ignore:
Timestamp:
17 Dec 2014, 01:39:13 (10 years ago)
Author:
seregin
Message:

fix compiler warnings

Location:
branches/SHM-upgrade/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/App/TAppDecoder/TAppDecTop.cpp

    r928 r931  
    14361436
    14371437        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());
    14401440        fclose(fptr);
    14411441
     
    14611461        yScal = TComSPS::getWinUnitY( chromaFormatIdc );
    14621462#endif
    1463         std::vector<TComPic>::iterator iterPic;
    1464         for(iterPic = layerBuffer->begin(); iterPic != layerBuffer->end(); iterPic++)
    1465         {
    1466           TComPic checkPic = *iterPic;
     1463        std::vector<TComPic>::iterator itPic;
     1464        for(itPic = layerBuffer->begin(); itPic != layerBuffer->end(); itPic++)
     1465        {
     1466          TComPic checkPic = *itPic;
    14671467          if( checkPic.getPOC() <= pic->getPOC() )
    14681468          {
     
    14731473              conf.getWindowTopOffset()   * yScal + defDisp.getWindowTopOffset(),
    14741474              conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() );
    1475             layerBuffer->erase(iterPic);
    1476             iterPic = layerBuffer->begin();  // Ensure doesn't go to infinite loop
     1475            layerBuffer->erase(itPic);
     1476            itPic = layerBuffer->begin();  // Ensure doesn't go to infinite loop
    14771477            if(layerBuffer->size() == 0)
    14781478            {
  • branches/SHM-upgrade/source/Lib/TLibDecoder/TDecGop.cpp

    r928 r931  
    5555
    5656#if CONFORMANCE_BITSTREAM_MODE
    57 Bool pocCompareFunction( TComPic &pic1, TComPic &pic2 )
    58 {
    59   return (pic1.getPOC() < pic2.getPOC());
     57Bool pocCompareFunction( const TComPic &pic1, const TComPic &pic2 )
     58{
     59  return (const_cast<TComPic&>(pic1).getPOC() < const_cast<TComPic&>(pic2).getPOC());
    6060}
    6161#endif
Note: See TracChangeset for help on using the changeset viewer.