From bb3f554119fb908f8d09154cdf8a24bc52a0e348 Mon Sep 17 00:00:00 2001 From: CastagnaIT Date: Wed, 28 Aug 2024 09:23:08 +0200 Subject: [PATCH] [Session] Fix wrong KID conversion --- src/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Session.cpp b/src/Session.cpp index fd6814914..6d20389b9 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -1501,7 +1501,7 @@ bool CSession::ExtractStreamProtectionData(PLAYLIST::CPeriod::PSSHSet& sessionPs { if (pssh[i].GetKid(0)) { - sessionPsshset.defaultKID_ = std::string((const char*)pssh[i].GetKid(0), 16); + sessionPsshset.defaultKID_ = STRING::ToHexadecimal(pssh[i].GetKid(0), 16); } else if (AP4_Track* track = movie->GetTrack( static_cast(stream.m_adStream.GetTrackType())))