Ticket #1244: FixCRAPocWhenNoRaslOutputFlagIsTrue.patch
File FixCRAPocWhenNoRaslOutputFlagIsTrue.patch, 1.1 KB (added by hendry, 11 years ago) |
---|
-
source/Lib/TLibCommon/TypeDef.h
53 53 #define FIX_WRITING_OUTPUT 1 54 54 #define FIX_OUTPUT_EOS 1 55 55 56 #define FIX_POC_CRA_NORASL_OUTPUT 1 57 56 58 #define MAX_NUM_PICS_IN_SOP 1024 57 59 58 60 #define MAX_NESTING_NUM_OPS 1024 -
source/Lib/TLibDecoder/TDecTop.cpp
411 411 } 412 412 #endif 413 413 414 #if FIX_POC_CRA_NORASL_OUTPUT 415 if (m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA && m_craNoRaslOutputFlag) //Reset POC MSB when CRA has NoRaslOutputFlag equal to 1 416 { 417 Int iMaxPOClsb = 1 << m_apcSlicePilot->getSPS()->getBitsForPOC(); 418 m_apcSlicePilot->setPOC( m_apcSlicePilot->getPOC() & (iMaxPOClsb - 1) ); 419 } 420 #endif 421 414 422 // Skip pictures due to random access 415 423 if (isRandomAccessSkipPicture(iSkipFrame, iPOCLastDisplay)) 416 424 {