libhb: check if profile is not NULL before accessing it

Fix #7455.
This commit is contained in:
Damiano Galassi 2025-11-24 07:47:07 +01:00
parent ad21dd99c2
commit 07c6a731ce
No known key found for this signature in database
GPG Key ID: 5452E231DFDBCA11
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ int hb_vt_get_best_pix_fmt(int encoder, const char *profile)
case HB_VCODEC_VT_H265:
return AV_PIX_FMT_NV12;
case HB_VCODEC_VT_H265_10BIT:
if (!strcasecmp(profile, "main422-10"))
if (profile != NULL && !strcasecmp(profile, "main422-10"))
{
return AV_PIX_FMT_P210;
}