mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
libs: enc: h265: reset num_ref_idx_l1_active_minus1 when low delay B.
When enable low delay B, the reference list 1 will be same with reference list 0, so need reset the num_ref_idx_l1_active_minus1 to num_ref_idx_l0_active_minus1. Fixes: #160
This commit is contained in:
parent
4fe9c0535f
commit
bc1ca96e67
1 changed files with 3 additions and 0 deletions
|
@ -1721,6 +1721,9 @@ add_slice_headers (GstVaapiEncoderH265 * encoder, GstVaapiEncPicture * picture,
|
|||
slice_param->num_ref_idx_l1_active_minus1 = reflist_1_count - 1;
|
||||
else
|
||||
slice_param->num_ref_idx_l1_active_minus1 = 0;
|
||||
if (picture->type == GST_VAAPI_PICTURE_TYPE_P && encoder->low_delay_b)
|
||||
slice_param->num_ref_idx_l1_active_minus1 =
|
||||
slice_param->num_ref_idx_l0_active_minus1;
|
||||
|
||||
i_ref = 0;
|
||||
if (picture->type != GST_VAAPI_PICTURE_TYPE_I) {
|
||||
|
|
Loading…
Reference in a new issue