diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-07-17 18:53:57 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2017-07-17 19:00:16 +0200 |
commit | 15f0bdb878efb35d8e6f1f01218a08ea45035dd5 (patch) | |
tree | 403f55b1f2aa57e45988d3fb579264fe4df7ae7f | |
parent | 3df7d3d4b052d31feeec998d6ab1d96de037ef67 (diff) |
libs: encoder: vp9: array terminated in zeros
There is a crash when setting ref-pic-mode since the #GEnumValue
array is not terminated with a structured with all memvers being
zero.
https://bugzilla.gnome.org/show_bug.cgi?id=785032
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_vp9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c b/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c index b9af7855..640ca7e3 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_vp9.c @@ -74,7 +74,8 @@ gst_vaapi_encoder_vp9_ref_pic_mode_type (void) "mode-0"}, {GST_VAAPI_ENCODER_VP9_REF_PIC_MODE_1, "Use last three frames for prediction (n:Last n-1:Gold n-2:Alt)", - "mode-1"} + "mode-1"}, + {0, NULL, NULL}, }; gtype = g_enum_register_static ("GstVaapiEncoderVP9RefPicMode", values); |