libs: encoder: increase bitrate prop max value
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 31 May 2019 19:30:03 +0000 (12:30 -0700)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 5 Jun 2019 08:30:10 +0000 (08:30 +0000)
There are many profile levels that can support
more than 102400 kbps.  Thus, increase the max
allowed bitrate property value from 102400 kbps
to 2048000 kbps (same as msdk encoder plugins).

gst-libs/gst/vaapi/gstvaapiencoder.c

index 8c87429..51bcd06 100644 (file)
@@ -151,7 +151,7 @@ gst_vaapi_encoder_properties_get_default (const GstVaapiEncoderClass * klass)
       g_param_spec_uint ("bitrate",
           "Bitrate (kbps)",
           "The desired bitrate expressed in kbps (0: auto-calculate)",
-          0, 100 * 1024, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+          0, 2000 * 1024, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
    * GstVaapiEncoder:target-percentage: