Commit 57de111f authored by Thomas Guillem's avatar Thomas Guillem

codec: hxxx_helper: fix null-deref when the SPS is not yet parsed

Crash introduced by 1b7e1c4b

(cherry picked from commit 48cdd917)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent c433a4c2
......@@ -923,7 +923,7 @@ hxxx_helper_get_current_profile_level(const struct hxxx_helper *hh,
else if(hh->i_codec == VLC_CODEC_HEVC)
{
const struct hxxx_helper_nal *hsps = &hh->hevc.sps_list[hh->hevc.i_current_sps];
if (hsps &&
if (hsps && hsps->hevc_sps &&
hevc_get_sps_profile_tier_level(hsps->hevc_sps, p_profile, p_level))
return VLC_SUCCESS;
}
......
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