diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-08-08 17:34:12 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-08-08 17:34:12 +0200 |
commit | 0b3ca626328605b670eb752b44a1ffdfb587bd8d (patch) | |
tree | 0a26cf5dd70a234647791dcd65a553df00204bfd | |
parent | 775f912247b246539a8f8bcc66dbbba4f1add167 (diff) |
vaapidecode: initialize variable
Coverity scan bug:
The variable will contain an arbitrary value left from earlier
computations.
Variable base_only is fetched from base-only property, and it may be
not assigned. It needs to be initialized.
-rw-r--r-- | gst/vaapi/gstvaapidecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 488ab539..d5747d32 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -1175,7 +1175,7 @@ gst_vaapidecode_ensure_allowed_sinkpad_caps (GstVaapiDecode * decode) GstCaps *caps, *allowed_sinkpad_caps; GArray *profiles; guint i; - gboolean base_only; + gboolean base_only = FALSE; gboolean have_high = FALSE; gboolean have_mvc = FALSE; |