mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
libs: encoder: h265: fix a bug to get get_profile_tier_level.
0 is a valid value for h265 tier. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/350>
This commit is contained in:
parent
abea5e81c8
commit
70800a8319
1 changed files with 2 additions and 1 deletions
|
@ -3705,7 +3705,8 @@ gst_vaapi_encoder_h265_get_profile_tier_level (GstVaapiEncoderH265 * encoder,
|
|||
{
|
||||
g_return_val_if_fail (encoder != NULL, FALSE);
|
||||
|
||||
if (!encoder->profile || !encoder->tier || !encoder->level)
|
||||
if (!encoder->profile || encoder->tier == GST_VAAPI_TIER_H265_UNKNOWN
|
||||
|| !encoder->level)
|
||||
return FALSE;
|
||||
|
||||
if (out_profile_ptr)
|
||||
|
|
Loading…
Reference in a new issue