Commit a6e79487 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

vp8enc: guard against NULL pointer dereference

Coverity 1139838
parent d2f66f53
......@@ -957,7 +957,7 @@ gst_vp8_enc_set_property (GObject * object, guint prop_id,
memset (&gst_vp8_enc->cfg.ts_layer_id, 0,
sizeof (gst_vp8_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",
} else if (va) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment