Skip to content

Commit

Permalink
Merge pull request #1662 from CastagnaIT/fix_extract_kid
Browse files Browse the repository at this point in the history
[Session] Fix wrong KID conversion
  • Loading branch information
CastagnaIT authored Aug 28, 2024
2 parents 6ece294 + 95a8026 commit a7ef01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,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<AP4_Track::Type>(stream.m_adStream.GetTrackType())))
Expand Down

0 comments on commit a7ef01d

Please sign in to comment.