File gst-vaapi-add-zero-as-valid-value.patch of Package gstreamer-plugins-vaapi

From 08e95320b1308a06601c01c2c122ba4cb1ae1d1a Mon Sep 17 00:00:00 2001
From: Matteo Valdina <matteo.valdina@gmail.com>
Date: Sun, 25 Feb 2018 20:46:56 -0600
Subject: libs: encoder: add zero as valid value for periodic keyframe.

Enabled zero as valid value for keyframe-period property.

https://bugzilla.gnome.org/show_bug.cgi?id=793829
---
 gst-libs/gst/vaapi/gstvaapiencoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c
index 9e3b403..a084f49 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder.c
@@ -153,7 +153,7 @@ gst_vaapi_encoder_properties_get_default (const GstVaapiEncoderClass * klass)
       GST_VAAPI_ENCODER_PROP_KEYFRAME_PERIOD,
       g_param_spec_uint ("keyframe-period",
           "Keyframe Period",
-          "Maximal distance between two keyframes (0: auto-calculate)", 1, 300,
+          "Maximal distance between two keyframes (0: auto-calculate)", 0, 300,
           30, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
-- 
cgit v1.1
openSUSE Build Service is sponsored by