 for long-term reference" and the same value of LongTermFrameldx is assigned to both the decoded picture and the 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 both of its fields are marked as "unused for reference". Otherwise, if LongTermFrameldx equal to long_term_frame_idx is assigned to a long-term reference field marked as "reference base picture", and the associated decoded picture (not marked as "reference base picture") is not part of a complementary field pair that includes the picture specified by picNumX (before invoking the process specified in clause 8.2.5.4.3) and not marked as "reference base picture", that field is marked as "unused for reference". NOTE 4 - When a particular value of LongTermFrameIdx is assigned to a reference base picture (marked as "reference base picture") and a decoded picture (not marked as "reference base picture"), the reference base picture is either associated with the same access unit as the decoded picture or with an access unit that represents a field that is part of a complementary field pair that includes the decoded picture. Otherwise, the reference picture marking is not modified. Otherwise, if memory_management_control_operation is equal to 4, the decoding process for MaxLongTermFrameldx as specified in clause 8.2.5.4.4 is invoked. NOTE 5 - For this invocation of the process specified in clause 8.2.5.4.4, the pictures marked as "reference base pictures" and the pictures not marked as "reference base picture" are taken into account. Otherwise, if fmemory_management_control_operationis equal to 5, the marking process of all reference pictures as "unused for reference" and setting MaxLongTermFrameldx to "no long-term frame indices" as specified in clause 8.2.5.4.5 is invoked. NOTE 6 - For this invocation of the process specifie