d in clause 8.2.5.4.5, the pictures marked as "reference base pictures" and the pictures not marked as "reference base picture" are taken into account. Otherwise (memory_management_control_operation is equal to 6), the following ordered steps are specified: The process for assigning a long-term frame index to the current picture as specified in clause 8.2.5.4.6 in invoked. For this invocation of the process specified in clause 8.2.5.4.6, all pictures that are marked as "reference base picture" are considered as not present. Depending on store_ref_base_pic_flag, the following applies: If store_ref_base_pic_flag is equal to 1, the reference base picture of the current picture is marked as "reference base picture" and the process for assigning a long-term frame index to the current picture as specified in clause 8.2.5.4.6 is invoked again. For this second invocation of the process specified in clause 8.2.5.4.6, the reference base picture is considered as the current picture and all pictures that are not marked as "reference base picture" are considered as not present. When the reference base picture of the current picture is the second reference base field (in decoding order) of a complementary reference base field pair, the complementary reference base field pair is also marked as "reference base picture". NOTE 7 - When the current decoded picture is marked as "used for long-term reference" and store_ref_base_pic_flag is equal to 1, the current reference base picture is also marked as "used for long-term reference" and the same value of LongTermFrameldx is assigned to both the current decoded picture and the Rec. ITU-T H.264 (01/2012) current reference base picture. The current reference base picture is additionally marked as "reference base picture". Otherwise, if LongTermFrameldx equal to long_term_frame_idx is assigned to a long-term reference frame marked as "reference base picture" or a long-term complementary reference field pair marked as "reference base picture", that frame or complementary field pair and b