From 1da2fd457df0215c8b2614bbc6b4f3c113641cab Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Mon, 5 May 2014 14:33:38 +0100 Subject: [PATCH] vp9enc: do not dereference NULL pointer Coverity 1197703 --- ext/vpx/gstvp9enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/vpx/gstvp9enc.c b/ext/vpx/gstvp9enc.c index ea276f9..f225c67 100644 --- a/ext/vpx/gstvp9enc.c +++ b/ext/vpx/gstvp9enc.c @@ -932,7 +932,7 @@ gst_vp9_enc_set_property (GObject * object, guint prop_id, memset (&gst_vp9_enc->cfg.ts_layer_id, 0, sizeof (gst_vp9_enc->cfg.ts_layer_id)); - if (va->n_values > VPX_TS_MAX_PERIODICITY) { + if (va && va->n_values > VPX_TS_MAX_PERIODICITY) { g_warning ("%s: Only %d sized layer sequences allowed at maximum", GST_ELEMENT_NAME (gst_vp9_enc), VPX_TS_MAX_PERIODICITY); } else if (va) { -- 2.7.4