f this clause. The value of direct_spatial_mv_pred_flag shall be equal to 1. num_ref_idx_active_override_fla; num_ref_idx_10_active_minus1, and num_ref_idx l1_active_minus1 have the same semantics as specified in clause 7.4.3. When quality_ is greater than 0, num_ref_idx_active_override_flag, num_ref_idx_10_active_minus1, num_ref_idx_l1_active_minus1 are inferred as specified in the beginning of this clause. base_pred_weight_table_flag equal to 1 specifies that the variables for weighted prediction are inferred. When base_pred_weight_table_flag not present, it shall be inferred as follows: If quality_i is greater than 0, base_pred_weight_table_flag is inferred as specified in the beginning of this clause. Otherwise (quality is equal to 0), base_pred_weight_table_flag is inferred to be equal to 0. When base pred_weight_table_flag is equal to 1 and quality_: is equal to 0, let refSetOfSlices be the set of slices that is represented by the VCL NAL units with dependency_id equal to (ref_layer_dq_id>>4) and quality_ id equal to 0 inside the current coded picture. When base_pred_weight_table_flag is equal to 1 and quality_id is equal to 0, the following constraints shall be obeyed: a) For all slices in refSetOfSlices, the value of (slice_type % shall be equal to (slice_type % : 5) of the current slice. b) ase_pred_weight_table_flagshall have the same value in all slices in refSetOfSlices. c) When the syntax structure pred_weight_table() is present in the slices of the set refSetOfSlices, the values of all syntax elements inside the syntax structure pred_weight_table() shall be the same for all slices in refSetOfSlices. d) When the current slice is an EP slice, the following applies: i) The value of fnum_ref_idx_10_active_minus1 of all slices in refSetOfSlices shall be identical to the value of num ref idx 10active minusl of the current slice. ii) For each slice in refSetOfSlices, the syntax elements inside the syntax structure ref_pic_list_modification() shall be the same, and the syntax structure ref_pic_list_modifica