ed to RefPicList1 and refIdxL1. Otherwise (modification_of_pic_nums_idc is equal to 3), the modification process for reference picture list RefPicList1 is finished. H.8.2.2.1 Modification process of reference picture lists for short-term reference pictures for inter prediction Inputs to this process are an index refIdxLX and a reference picture list RefPicListX (with X being 0 or 1). Outputs of this process are an incremented index refldxLX and a modified reference picture list RefPicListX. The variable picNumLXNoWrap is derived as follows: If modification_of_pic_nums_idc is eq to 0, if( picNumLXPred - (abs_diff_pic_num_minus1+1)<0) bicNumLXNoWrap =picNumLXPred -(abs_diff_pic_num_minus1 - +1) MaxPicNum (H-1) picNumLXNoWrap=picNumLXPred = - (abs_diff_pic_num_minus1- Otherwise (modification_of_pic_nums_idc is equal to 1), if( picNumLXPreo 1+(abs_diff_pic_num_minus1+ 1) >= MaxPicNum ) picNumLXNoWrap =picNumLXPred+(abs_diff_pic_num_minus1 +1) MaxPicNum (H-2) = picNumLXPred + (abs_diff_pic_num_minus1+1 picNumLXPred is the prediction value for the variable picNumLXNoWrap. When the process specified in this clause is invoked the first time for a slice (that is, for the first occurrence ofmodification_of_pic_nums_ido equal to 0 or 1 in the ref_pic_list_modification() syntax), picNumLOPred and picNumL1Pred are initially set equal to CurrPicNum. After each assignment of picNumLXNoWrap, the value of picNumLXNoWrap is assigned to picNumLXPred. The variable picNumLX is derived as specified by the following pseudo-code: if( picNumLXNoWrap>CurrPicNum) picNumLX=picNumLXNoWrap -MaxPicNum - (H-3) picNumLX=picNumLXNoWrap picNumLX shall be equal to the PicNum of a reference picture that is marked as "used for short-term reference" and shall not be equal to the PicNum of a short-term reference picture that is marked as "non-existing". The following procedure is conducted to place the picture with short-term picture number picNumLX into the index position refIdxLX, shift the position of any other remaining pictures to later in the lis