Commit 70800a83 authored by He Junyan's avatar He Junyan Committed by Víctor Manuel Jáquez Leal

libs: encoder: h265: fix a bug to get get_profile_tier_level.

0 is a valid value for h265 tier.

Part-of: <gstreamer/gstreamer-vaapi!350>
parent abea5e81
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment