decoder: hevc: Fix the value assigning for delta_chroma_log2_weight_denom

Assign only if ChromaArrayType != 0..

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
This commit is contained in:
Sreerenj Balachandran 2015-08-13 03:48:43 +03:00
parent a57f294ed3
commit 8939674a36

View file

@ -2339,7 +2339,7 @@ fill_pred_weight_table (GstVaapiDecoderH265 * decoder,
(pps->weighted_bipred_flag && GST_H265_IS_B_SLICE (slice_hdr))) {
slice_param->luma_log2_weight_denom = w->luma_log2_weight_denom;
if (!sps->chroma_format_idc)
if (sps->chroma_array_type != 0)
slice_param->delta_chroma_log2_weight_denom =
w->delta_chroma_log2_weight_denom;