t, and increment the value of refIdxLX: for( cIdx (=num_ref_idx_IX_active_minus1+1;cldx>1 = refIdxLX; cIdx--) RefPicListX[ cIdx RefPicListX[ RefPicListX| refIdxLX++ short-term reference picture with PicNum equal to picNumLX nIdx = refldxLX for( cIdx = refIdxLX; cldx (<=num_ref_idx_IX_active_minus1+1;cIdx++) (H-4) if(PicNumF(RefPicListX[cIdx])!=picNumLXI viewID(RefPicListX[ cldx ]) != currViewID) fPicListX[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 PicNumF(RefPicListX| cIdx ]) is derived as follows: - If the reference picture RefPicListX[ cldx ] is marked as "used for short-term reference", PicNumF(RefPicListX[ cldx ]) is the PicNum of the picture RefPicListX[ cldx ]. Rec. ITU-T H.264 (01/2012) Otherwise (the reference picture RefPicListX[ cIdx ] is not marked as "used for short-term reference"), PicNumF(RefPicListX| cIdx ]) is equal to MaxPicNum. NOTE 1 - The value of picNumLX can never be equal to MaxPicNum. 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.2 Modification process of reference picture lists for long-term reference pictures for inter prediction Inputs to this process are an index refIdxLX (with X being 0 or 1) and reference picture list RefPicListX. Outputs of this process are an incremented index refldxLX and a modified reference picture list RefPicListX. The following procedure is conducted to place the picture with long-term picture number long_term_pic_num into the index position refIdxLX, shift the position of any other remaining pictures to later in the list, and increment the value of refIdxLX: for( cIdx = cIdx--) RefPicListX| cldx RefPicListX| cIdx RefPicListX| refIdxLX++ long-term refer