 slices, RefPicList1 are modified as specified in clause 8.2.4.3. NOTE - The modification process for reference picture lists specified in clause 8.2.4.3 allows the contents of RefPicList0 and for B slices RefPicList1 to be modified in a flexible fashion. In particular, it is possible for a picture that is currently marked "used for reference" to be inserted into RefPicList0 and for B slices RefPicList1 even when the picture is not in the initial reference picture list derived as specified in clause 8.2.4.2. The number of entries in the modified reference picture list RefPicList0 is (num_ref idx_10_active_minus1 + 1, and for B slices the number of entries in the modified reference picture list RefPicList1 is num ref idx l1 active minus1 + 1. A reference picture may appear at more than one index in the modified reference picture lists RefPicList0 or RefPicListl. 8.2.4.1 Decoding process for picture numbers This process is invoked when the decoding process for reference picture lists construction specified in clause 8.2.4, the decoded reference picture marking process specified in clause 8.2.5, or the decoding process for gaps in frame_num specified in clause 8.2.5.2 is invoked. The variables FrameNum, FrameNumWrap, PicNum, LongTermFrameIdx, and LongTermPicNum are used for the initialisation process for reference picture lists in clause 8.2.4.2, the modification process for reference picture lists in clause 8.2.4.3, the decoded reference picture marking process in clause 8.2.5, and the decoding process for gaps in frame nut in clause 8.2.5.2. To each short-term reference picture the variables FrameNum and FrameNumWrap are assigned as follows. First, FrameNum is set equal to the syntax element frame_nur that has been decoded in the slice header(s) of the corresponding short-term reference picture. Then the variable FrameNumWrap is derived as if( FrameNum > name_num) FrameNumWrap =FrameNum-MaxFrameNum - (8-27) FrameNumWrap = FrameNum where the value of frame num used in Equation 8-27 is the frame_num in the slice hea