ependency representations. For each value of dId in the set setOfDId, the following applies: If the dependency representation with dependency id equal to dId contains a NAL unit with equal to 5 or a NAL unit with nal_unit_type equalto 20 and idr_flag equal to 1, 10_dep_rep_idx s be equal to 0. Otherwise (the dependency representation with dependency_id equal to dId does not contain a NAL unit with nal_unit_type equal to 5 or a NAL unit with nal_unit_type equal to 20 and idr_flag equal to 1), the following is specified: Let prevTL0AU be the most recent access unit in decoding order that has temporal_id equal to 0 and for which the primary coded picture contains a dependency representation with dependency_id equal to dId. 2. Let prevTL0DepRep be the dependency representation with dependency_id equal to dId of the primary coded picture in access unit prevTLOAU. Let prevTL0DepRepIdx be equal to the value of 10_dep_rep_idx that is associated with the dependency representation prevTLODepRep, as indicated by a corresponding temporal level zero dependency representation index SEI message. 4. Depending on temporal_id of the current access unit, the following applies: If temporal_id of the current access unit is equal to 0, t10_dep_rep_idx shall be equal to prevTL0DepRepIdx + 1) % 256. Otherwise (temporal_id of the current access unit is greater than 0), t10_dep_rep_idx shall be equal to prevTL0DepRepIdx. When the temporal level zero dependency representation index SEI message is associated with a particular dependency representation depRepA that has dependency_id equal dIdA and IdrPicFlag equal to 0, a temporal level zero dependency representation index SEI message shall also be associated with the previous dependency representation dIdB in decoding order that has dependency_i equal to dIdA and IdrPicFlag equal to 1 and all dependency representations with dependency_ic equal to dIdA and temporal_id equal to 0 that follow the dependency representation dIdB and precede the dependency representation dIdA in decoding order. N