mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
vp9enc: do not dereference NULL pointer
Coverity 1197703
This commit is contained in:
parent
9589c43516
commit
1da2fd457d
1 changed files with 1 additions and 1 deletions
|
@ -932,7 +932,7 @@ gst_vp9_enc_set_property (GObject * object, guint prop_id,
|
||||||
|
|
||||||
memset (&gst_vp9_enc->cfg.ts_layer_id, 0,
|
memset (&gst_vp9_enc->cfg.ts_layer_id, 0,
|
||||||
sizeof (gst_vp9_enc->cfg.ts_layer_id));
|
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",
|
g_warning ("%s: Only %d sized layer sequences allowed at maximum",
|
||||||
GST_ELEMENT_NAME (gst_vp9_enc), VPX_TS_MAX_PERIODICITY);
|
GST_ELEMENT_NAME (gst_vp9_enc), VPX_TS_MAX_PERIODICITY);
|
||||||
} else if (va) {
|
} else if (va) {
|
||||||
|
|
Loading…
Reference in a new issue