From 0b3ca626328605b670eb752b44a1ffdfb587bd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 8 Aug 2017 17:34:12 +0200 Subject: [PATCH] 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. --- gst/vaapi/gstvaapidecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 488ab53938..d5747d327c 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;