vah264enc: Use guint32 for rc_ctrl as it's for rc_ctrl_mode.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2836>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-08-04 13:02:00 +02:00 committed by GStreamer Marge Bot
parent 7e95a8fc92
commit cc9d69cb66

View file

@ -142,7 +142,7 @@ struct _GstVaH264Enc
/* kbps */ /* kbps */
guint bitrate; guint bitrate;
/* VA_RC_XXX */ /* VA_RC_XXX */
guint rc_ctrl; guint32 rc_ctrl;
guint key_int_max; guint key_int_max;
guint32 num_ref_frames; guint32 num_ref_frames;
gboolean b_pyramid; gboolean b_pyramid;
@ -482,8 +482,7 @@ _ensure_rate_control (GstVaH264Enc * self)
GstVaBaseEnc *base = GST_VA_BASE_ENC (self); GstVaBaseEnc *base = GST_VA_BASE_ENC (self);
guint bitrate; guint bitrate;
guint32 rc_mode; guint32 rc_mode, quality_level;
guint32 quality_level;
quality_level = gst_va_encoder_get_quality_level (base->encoder, quality_level = gst_va_encoder_get_quality_level (base->encoder,
base->profile, base->entrypoint); base->profile, base->entrypoint);