Commit 48cdd917 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
parent da466033
......@@ -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))
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