mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
vah264enc: update b_pryamid property if it changes
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7337>
This commit is contained in:
parent
a5651f8b44
commit
17fc4374b2
1 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue