mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
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:
parent
4b5e930bc8
commit
a9d839b8a3
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue