vah264enc: update b_pryamid property if it changes

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7337>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-08-06 10:58:29 +02:00
parent a5651f8b44
commit 17fc4374b2

View file

@ -1172,6 +1172,10 @@ create_poc:
self->gop.num_ref_frames, PROP_NUM_REF_FRAMES);
update_property_uint (base, &self->prop.num_iframes, self->gop.num_iframes,
PROP_IFRAMES);
update_property_uint (base, &self->prop.num_bframes, self->gop.num_bframes,
PROP_BFRAMES);
update_property_bool (base, &self->prop.b_pyramid, self->gop.b_pyramid,
PROP_B_PYRAMID);
}
static void
@ -1639,13 +1643,6 @@ gst_va_h264_enc_reconfig (GstVaBaseEnc * base)
_calculate_coded_size (self);
/* updates & notifications */
/* num_bframes are modified several times before */
update_property_uint (base, &self->prop.num_bframes, self->gop.num_bframes,
PROP_BFRAMES);
update_property_bool (base, &self->prop.b_pyramid, self->gop.b_pyramid,
PROP_B_PYRAMID);
if (!_init_packed_headers (self))
return FALSE;