mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
a57f294ed3
commit
8939674a36
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue