erence picture is identified for use in the decoding process by its variable LongTermFrameIdx, its long-term picture number LongTermPicNum, and, when it is a reference base picture, by the marking as "reference base picture". When the current picture is not an IDR picture, the variables FrameNum, FrameNumWrap, PicNum, LongTermFrameIdx, and LongTermPicNum are assigned to the reference pictures by invoking the SVC decoding process for picture numbers as specified in clause G.8.2.2 with currDependencyId and refPicListConstructionFlag equal to 0 as the inputs. Decoded reference picture marking proceeds in the following ordered steps: 1. All slices of the current access unit are decoded. Depending on the current picture, the following applies: If the current picture is an IDR picture, the following ordered steps are specified: All reference pictures are marked as "unused for reference". Depending on long_term_reference_flag, the following applies: If long_term_reference_flag is equal to 0, the following ordered steps are specified: Rec. ITU-T H.264 (01/2012) The IDR picture is marked as "used for short-term reference" and MaxLongTermFrameldx is set equal to "no long-term frame indices". When store_ref_base_pic_flag is equal to 1, the reference base picture of the IDR picture is marked as "used for short-term reference" and as "reference base picture". Otherwise (long_term_reference_flag is equal to 1), the following ordered steps are specified: The IDR picture is marked as "used for long-term reference", the LongTermFrameldx for the IDR picture is set equal to 0, and MaxLongTermFrameldx is set equal to 0. ii. When store_ref_base_pic_flag equal to 1, the reference base picture of the IDR picture is marked as "used for long-term reference" and as "reference base picture", and the LongTermFrameldx for the reference base picture of the IDR picture is set equal to 0. Otherwise (the current picture is not an IDR picture), the following ordered steps are specified: When adaptive_ref_base_pic_marking_mode_flag is equal to 1, 