Commit 0d38c6a0 authored by Xiaozhong Xu's avatar Xiaozhong Xu Committed by Xiang Li

K0076_CPR fix ldp bug

parent bb902c4a
......@@ -1300,11 +1300,9 @@ void HLSWriter::codeSliceHeader ( Slice* pcSlice )
}
if( pcSlice->getSliceType() != I_SLICE &&
#if JVET_K0076_CPR
( ( pcSlice->getColFromL0Flag() == 1 && pcSlice->getNumRefIdx(REF_PIC_LIST_0) > 1 + (int)pcSlice->getSPS()->getSpsNext().getIBCMode()) ||
#else
( ( pcSlice->getColFromL0Flag() == 1 && pcSlice->getNumRefIdx( REF_PIC_LIST_0 ) > 1 ) ||
#endif
( pcSlice->getColFromL0Flag() == 0 && pcSlice->getNumRefIdx( REF_PIC_LIST_1 ) > 1 ) ) )
{
WRITE_UVLC( pcSlice->getColRefIdx(), "collocated_ref_idx" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment