reference" and setting MaxLongTermFrameIdx to "no long-term frame indices" This process is invoked when memory_management_control_operationis equal to 5. All reference pictures are marked as "unused for reference" and the variable MaxLongTermFrameldx is set equal to "no long-term frame indices". 8.2.5.4.6 Process for assigning a long-term frame index to the current picture This process is invoked when memory_management_control_operation is equal to 6. When a variable LongTermFrameIdx equal to long_term_frame_idx is already assigned to a long-term reference frame or a long-term complementary reference field pair, that frame or complementary field pair and both of its fields are marked as "unused for reference". When LongTermFrameIdx is already assigned to a reference field, and that reference field is not part of a complementary field pair that includes the current picture, that field is marked as "unused for reference". The current picture is marked as "used for long-term reference" and assigned LongTermFrameldx equal to long_term_frame_idx. When field_pic_flag is equal to 0, both its fields are also marked as "used for long-term reference" and assigned LongTermFrameIdx equal to long_term_frame_idx. When field_pic_flag is equal to 1 and the current picture is the second field (in decoding order) of a complementary reference field pair, and the first field of the complementary reference field pair is also currently marked as "used for long-term reference", the complementary reference field pair is also marked as "used for long-term reference" and assigned LongTermFrameIdx equal to long_term_frame_idx. After marking the current decoded reference picture, the total number of frames with at least one field marked as "used for reference", plus the number of complementary field pairs with at least one field marked as "used for reference", plus the number of non-paired fields marked as "used for reference" shall not be greater than Max( max_num_ref_frames, 1). NOTE - Under some circumstances, the above statement may imp