hardware/intel/intel-driver
Revisión | f509640c60d441beb9b846d64f757073619f6bda (tree) |
---|---|
Tiempo | 2015-04-29 16:58:07 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
HEVC/dec: Make sure the derived value for ChromaLog2WeightDenom is in the the range of 0 to 7
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
@@ -814,7 +814,7 @@ gen9_hcpd_slice_state(VADriverContextP ctx, | ||
814 | 814 | (5 - slice_param->five_minus_max_num_merge_cand - 1) << 23 | |
815 | 815 | slice_param->LongSliceFlags.fields.cabac_init_flag << 22 | |
816 | 816 | slice_param->luma_log2_weight_denom << 19 | |
817 | - (slice_param->luma_log2_weight_denom + slice_param->delta_chroma_log2_weight_denom) << 16 | | |
817 | + ((slice_param->luma_log2_weight_denom + slice_param->delta_chroma_log2_weight_denom) & 0x7) << 16 | | |
818 | 818 | slice_param->LongSliceFlags.fields.collocated_from_l0_flag << 15 | |
819 | 819 | gen9_hcpd_is_low_delay(ctx, pic_param, slice_param) << 14 | |
820 | 820 | slice_param->LongSliceFlags.fields.mvd_l1_zero_flag << 13 | |