mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2slh264dec: Fix B-Frame weight table
We where not setting the luma l1 weight table. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1563>
This commit is contained in:
parent
2b152eae69
commit
cc8e1ca2ac
1 changed files with 6 additions and 6 deletions
|
@ -566,15 +566,15 @@ gst_v4l2_codec_h264_dec_fill_slice_params (GstV4l2CodecH264Dec * self,
|
|||
}
|
||||
}
|
||||
|
||||
/* Skip l1 if this is not a B-Frames. */
|
||||
/* Skip l1 if this is not a B-Frame. */
|
||||
if (slice->header.type % 5 != GST_H264_B_SLICE)
|
||||
return;
|
||||
|
||||
for (i = 0; i <= slice->header.num_ref_idx_l0_active_minus1; i++) {
|
||||
params->pred_weight_table.weight_factors[0].luma_weight[i] =
|
||||
slice->header.pred_weight_table.luma_weight_l0[i];
|
||||
params->pred_weight_table.weight_factors[0].luma_offset[i] =
|
||||
slice->header.pred_weight_table.luma_offset_l0[i];
|
||||
for (i = 0; i <= slice->header.num_ref_idx_l1_active_minus1; i++) {
|
||||
params->pred_weight_table.weight_factors[1].luma_weight[i] =
|
||||
slice->header.pred_weight_table.luma_weight_l1[i];
|
||||
params->pred_weight_table.weight_factors[1].luma_offset[i] =
|
||||
slice->header.pred_weight_table.luma_offset_l1[i];
|
||||
}
|
||||
|
||||
if (slice->header.pps->sequence->chroma_array_type != 0) {
|
||||
|
|
Loading…
Reference in a new issue