diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2017-02-17 01:19:00 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2017-02-22 05:19:06 +0100 |
commit | 7b3a51f145902aa13a38d37f6f3a88a9dbde83c0 (patch) | |
tree | 59e911ccd8874fd876ba0a781e4c4356ee3aee14 /gst-libs | |
parent | d6738f3f93ce19b6cd9d072b9a3e31264d9a9d59 (diff) |
libs: encoder: h265: bail if nal unit type fails
Bail out if the NAL unit type is not recognized.
https://bugzilla.gnome.org/show_bug.cgi?id=778782
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder_h265.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c index a838d97f..b657e0de 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c @@ -1625,7 +1625,8 @@ fill_picture (GstVaapiEncoderH265 * encoder, GstVaapiEncPicture * picture, pic_param->num_ref_idx_l1_default_active_minus1 = (ref_pool->max_reflist1_count ? (ref_pool->max_reflist1_count - 1) : 0); - get_nal_unit_type (picture, &nal_unit_type); + if (!get_nal_unit_type (picture, &nal_unit_type)) + return FALSE; pic_param->nal_unit_type = nal_unit_type; /* set picture fields */ |