Ticket #1124: poc_lsb.patch

File poc_lsb.patch, 619 bytes (added by bheng, 9 years ago)
  • Lib/TLibDecoder/TDecCAVLC.cpp

     
    834834      Int iPOClsb = uiCode;
    835835      Int iPrevPOC = rpcSlice->getPrevPOC();
    836836      Int iMaxPOClsb = 1<< sps->getBitsForPOC();
    837       Int iPrevPOClsb = iPrevPOC%iMaxPOClsb;
     837      Int iPrevPOClsb = iPrevPOC & (iMaxPOClsb - 1);
    838838      Int iPrevPOCmsb = iPrevPOC-iPrevPOClsb;
    839839      Int iPOCmsb;
    840840      if( ( iPOClsb  <  iPrevPOClsb ) && ( ( iPrevPOClsb - iPOClsb )  >=  ( iMaxPOClsb / 2 ) ) )