examples: vaenc-dynamic: ignore bitrate change with ICQ too

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6465>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-03-27 19:43:28 +01:00
parent 4b5e930bc8
commit a9d839b8a3

View file

@ -284,7 +284,8 @@ keyboard_cb (gchar input, gboolean is_ascii, gpointer user_data)
case '>':{
guint bitrate;
if (is_ratectl (data->encoder, 0x00000010 /* VA_RC_CQP */ ))
if (is_ratectl (data->encoder, 0x00000010 /* VA_RC_CQP */ )
|| is_ratectl (data->encoder, 0x00000040 /* VA_RC_ICQ */ ))
break;
g_object_get (data->encoder, "bitrate", &bitrate, NULL);
@ -296,7 +297,8 @@ keyboard_cb (gchar input, gboolean is_ascii, gpointer user_data)
case '<':{
gint bitrate;
if (is_ratectl (data->encoder, 0x00000010 /* VA_RC_CQP */ ))
if (is_ratectl (data->encoder, 0x00000010 /* VA_RC_CQP */ )
|| is_ratectl (data->encoder, 0x00000040 /* VA_RC_ICQ */ ))
break;
g_object_get (data->encoder, "bitrate", &bitrate, NULL);