h264parser: Fix a typo in pred_weight_table parsing.

When setting default values, the reference list number of l1 is wrong.

Fix: https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/issues/336
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3464>
This commit is contained in:
He Junyan 2022-11-25 18:38:27 +08:00 committed by GStreamer Marge Bot
parent 66087b6276
commit 25f90c828a

View file

@ -795,7 +795,7 @@ gst_h264_slice_parse_pred_weight_table (GstH264SliceHdr * slice,
p->chroma_weight_l0[i][1] = default_chroma_weight;
}
if (GST_H264_IS_B_SLICE (slice)) {
for (i = 0; i <= slice->num_ref_idx_l0_active_minus1; i++) {
for (i = 0; i <= slice->num_ref_idx_l1_active_minus1; i++) {
p->chroma_weight_l1[i][0] = default_chroma_weight;
p->chroma_weight_l1[i][1] = default_chroma_weight;
}