that the current IDR picture is marked "used for long-term reference" and is assigned LongTermFrameldx equal to 0. When max_num_ref_frames is equal to 0, long_term_reference_flagshall b be equal to 0. addaptive_ref_pic_marking_mode_flag selectst the reference picture marking mode of the currently decoded picture as specified in Table 7-8. adaptive_ref_pic_marking_mode_flag shall be equal to 1 when the number of frames, complementary field pairs, and non-paired fields that are currently marked as "used for long-term reference" is equal to Max( max_num_ref_frames, 1). Rec. ITU-T H.264 (01/2012) Table 7-8 - Interpretation of adaptive_ref_pic_marking_mode_flag adaptive_ref_pic_marking_mode_flag Reference picture marking mode specified Sliding window reference picture marking mode: A marking mode providing a first-in first-out mechanism for short-term reference pictures. Adaptive reference picture marking mode: A reference picture marking mode providing syntax elements to specify marking of reference pictures as "unused for reference" and to assign long-term frame indices. memory_management_control_operation specifies a control operation to be applied to affect the reference picture marking. Thememory_management_control_operationsyntax element is followed by data necessary for the operation specified by the value ofmemory_management_control_operation. The values and control operations associated with memory_management_control_operation are specified in Table 7-9. The memory_management_control_operation syntax elements are processed by the decoding process in the order in which they appear in the slice header, and the semantics constraints expressed for each memory_management_control_operation apply at the specific position in that order at which that individual memory_management_control_operationis processed. For interpretation of nemory_management_control_operation, the term reference picture is interpreted as follows: If the current picture is a frame, the term reference picture refers either to a reference frame or