ndow decoded reference picture marking process Input to this process is a variable refBasePicFlag. The variable newFrameBufferFlag is derived as follows: If one of the following conditions is true, newFrameBufferFlag is set equal to 0: refBasePicFlag is equal to 0, the current picture is a coded field that is the second field in decoding order of a complementary reference field pair, and the first field of the complementary reference field pair has been marked as "used for short-term reference", refBasePicFlag is equal to 1, the current reference base picture is a reference base field that is the second field in decoding order of a complementary reference base field pair, and the first field has been marked as "used for short-term reference" (and "reference base picture"). Otherwise, newFrameBufferFlag is set equal to 1. When newFrameBufferFlag is equal to 1, the following ordered steps are specified: 1. Let numShortTerm be the total number of reference frames, complementary reference field pairs, and non-paired reference fields for which at least one field is marked as "used for short-term reference". Let numLongTerm be the total number of reference frames, complementary reference field pairs, and non-paired reference fields for which at least one field is marked as "used for long-term reference". NOTE 1 - For this derivation of numShortTerm and numLongTerm, the pictures marked as "reference base pictures" and the pictures not marked as "reference base picture" are taken into account. When numLongTerm is equal to Max( max_num_ref_frames, 1), the following ordered steps are specified: The condition that numShortTerm is greater than 0 shall be fulfilled. Let frameNumWrapDecPic be the smallest value of FrameNumWrap that is assigned to reference frames, complementary reference field pairs, and non-paired reference fields that are marked as "used for short-term reference" and not marked as "reference base pictures". When there doesn't exist any reference frame, complementary reference field pair, or non-paired refere