mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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>
This commit is contained in:
parent
e9996be658
commit
0b05b9b3e6
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue