Ticket #1068: TDecCAVLC.cpp.patch

File TDecCAVLC.cpp.patch, 1.1 KB (added by pieterkapsenberg, 12 years ago)
  • TDecCAVLC.cpp

     
    934934      rpcSlice->setPOC              (iPOCmsb+iPOClsb);
    935935
    936936      TComReferencePictureSet* rps;
     937      rps = rpcSlice->getLocalRPS();
     938      rpcSlice->setRPS(rps);
    937939      READ_FLAG( uiCode, "short_term_ref_pic_set_sps_flag" );
    938940      if(uiCode == 0) // use short-term reference picture set explicitly signalled in slice header
    939941      {
    940         rps = rpcSlice->getLocalRPS();
    941942        parseShortTermRefPicSet(sps,rps, sps->getRPSList()->getNumberOfReferencePictureSets());
    942         rpcSlice->setRPS(rps);
    943943      }
    944944      else // use reference to short-term reference picture set in PPS
    945945      {
     
    956956        {
    957957          uiCode = 0;
    958958        }
    959         rpcSlice->setRPS(sps->getRPSList()->getReferencePictureSet(uiCode));
    960 
    961         rps = rpcSlice->getRPS();
     959        memcpy(rps,sps->getRPSList()->getReferencePictureSet(uiCode),sizeof(TComReferencePictureSet));
    962960      }
    963961      if(sps->getLongTermRefsPresent())
    964962      {