Ticket #791: negative_poc_w_idr.patch

File negative_poc_w_idr.patch, 641 bytes (added by bheng, 11 years ago)
  • source/Lib/TLibDecoder/TDecTop.cpp

     
    751751    }
    752752    else if ( m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP )
    753753    {
    754       m_pocRandomAccess = 0; // no need to skip the reordered pictures in IDR, they are decodable.
     754      m_pocRandomAccess = -MAX_INT-1; // no need to skip the reordered pictures in IDR, they are decodable.
    755755    }
    756756    else
    757757    {