summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2021-08-20 11:23:57 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-08-20 16:03:43 +0000
commit0b05b9b3e68334d94cc47129aa0648e58482733e (patch)
tree2bfa717d573b99db924257a2645a521b7f6d5770 /sys
parente9996be6581605bc50801961c5c9adfd54eaaff1 (diff)
downloadgstreamer-plugins-bad-0b05b9b3e68334d94cc47129aa0648e58482733e.tar.gz
v4l2codecs: h264: Fix filling weight factors
This was a typo, the wrong index was used to set l1 weight (b-frames). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2480>
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2codecs/gstv4l2codech264dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/v4l2codecs/gstv4l2codech264dec.c b/sys/v4l2codecs/gstv4l2codech264dec.c
index 3004e679d..5c912edca 100644
--- a/sys/v4l2codecs/gstv4l2codech264dec.c
+++ b/sys/v4l2codecs/gstv4l2codech264dec.c
@@ -631,9 +631,9 @@ gst_v4l2_codec_h264_dec_fill_pred_weight (GstV4l2CodecH264Dec * self,
return;
for (i = 0; i <= slice_hdr->num_ref_idx_l1_active_minus1; i++) {
- self->pred_weight.weight_factors[0].luma_weight[i] =
+ self->pred_weight.weight_factors[1].luma_weight[i] =
slice_hdr->pred_weight_table.luma_weight_l1[i];
- self->pred_weight.weight_factors[0].luma_offset[i] =
+ self->pred_weight.weight_factors[1].luma_offset[i] =
slice_hdr->pred_weight_table.luma_offset_l1[i];
}