mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
66087b6276
commit
25f90c828a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue