ence picture with LongTermPicNum equal to long_term_pic_num nIdx = refIdxLX for( cIdx = refIdxLX; cldx <= num_ref idx IX_active_minus1+1; cIdx++) (H-5) if( LongTermPicNumF(RefPicListX[cIdx])!=long_term_pic_num viewID(RefPicListX[cIdx])!=currViewID) RefPicListX[nIdx++]=RefPicListX[cIdx ] In the above, the function viewID(refpic) returns the view_id of the reference picture refpic, the variable currViewID is equal to the view_id of the current slice, and the function LongTermPicNumF(RefPicListX[cIdx is derived as follows: If the reference picture RefPicListX[ cIdx ] is marked as "used for long-term reference", LongTermPicNumF(RefPicListX| cIdx ]) is the LongTermPicNum of the picture RefPicListX[ cIdx ]. Otherwise (the reference picture RefPicListX[ cIdx ] is not marked as "used for long-term reference"), LongTermPicNumF(RefPicListX[ cIdx ]) is equal to 2 * (MaxLongTermFrameIdx + -1). NOTE 1 - The value of long_term_pic_num can never be equal to 2 * (MaxLongTermFrameldx + 1). NOTE 2 - Within this pseudo-code procedure, the length of the list RefPicListX is temporarily made one element longer than the length needed for the final list. After the execution of this procedure, only elements 0 through num_ref_idx_IX_active_minus1 of the list need to be retained. H.8.2.2.3 Modification process for reference picture lists for inter-view prediction references Inputs to this process are reference picture list RefPicListX (with X being 0 or 1) and an index refldxLX into this list. Outputs of this process are a modified reference picture list RefPicListX (with X being 0 or 1) and an incremented index refIdxLX. urrVOIdx be the variable VOIdx of the current slice. The variable max ViewIdx is derived as follows: If the current slice has anchor_pic_flag equal to 1, maxViewIdx is set equal to num_anchor_refs_IX[currVOIdx ] - 1. Otherwise (the current slice has anchor_pic_flag equal to 0), maxViewIdx is set equal to aum_non_anchor_refs_IX[currVOIdx - 1. The variable picViewIdxLX is derived as follows: If modification_of_pic_nums_idc 