From 7369ed8154243fab7fd0ec32e88e7b9bab3668b6 Mon Sep 17 00:00:00 2001 From: Sai Asish Y Date: Mon, 20 Jul 2026 00:13:29 -0700 Subject: [PATCH] Guard against null handler type in MP4File::GenerateTracks Signed-off-by: Sai Asish Y --- src/mp4file.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mp4file.cpp b/src/mp4file.cpp index cd4ba83..8eff06f 100644 --- a/src/mp4file.cpp +++ b/src/mp4file.cpp @@ -469,7 +469,8 @@ void MP4File::GenerateTracks() MP4Track* pTrack = NULL; try { - if (!strcmp(pTypeProperty->GetValue(), MP4_HINT_TRACK_TYPE)) { + const char* type = pTypeProperty->GetValue(); + if (type != NULL && !strcmp(type, MP4_HINT_TRACK_TYPE)) { pTrack = new MP4RtpHintTrack(*this, *pTrakAtom); } else { pTrack = new MP4Track(*this, *pTrakAtom);