mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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
This commit is contained in:
parent
d6738f3f93
commit
7b3a51f145
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue