diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2019-01-10 15:02:16 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-01-11 09:57:44 +0000 |
commit | 5fc160fa5959b7cb2b5495916378ebedee8006ec (patch) | |
tree | 3839a64c7104086fe50f0e1bb28f11c026c5181f /sys | |
parent | 0b94ed81a48c8c6169f2706757c6ccf8fa23c9eb (diff) | |
download | gstreamer-plugins-bad-5fc160fa5959b7cb2b5495916378ebedee8006ec.tar.gz |
msdk: set the upper bound of max-vbv-bitrate to 2048000 kbps
The upper bound of bitrate is also 2048000 kbps which should be large
enough in practice.
Fix https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/863
Diffstat (limited to 'sys')
-rw-r--r-- | sys/msdk/gstmsdkenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index 33f23845d..72e81928a 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -1824,10 +1824,11 @@ gst_msdkenc_install_common_properties (GstMsdkEncClass * klass) 0, G_MAXUINT16, PROP_MAX_FRAME_SIZE_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + /* Set the same upper bound with bitrate */ obj_properties[GST_MSDKENC_PROP_MAX_VBV_BITRATE] = g_param_spec_uint ("max-vbv-bitrate", "Max VBV Bitrate", "Maximum bitrate(kbit/sec) at which data enters Video Buffering Verifier (0: auto-calculate)", - 0, G_MAXUINT16, PROP_MAX_VBV_BITRATE_DEFAULT, + 0, 2000 * 1024, PROP_MAX_VBV_BITRATE_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); obj_properties[GST_MSDKENC_PROP_AVBR_ACCURACY] = |