@@ -76,7 +76,6 @@ CWVCencSingleSampleDecrypter::CWVCencSingleSampleDecrypter(
7676 // prepare the promise before calling into CDM
7777 std::future<std::string> fut = m_cdmAdapter->PrepareSessionFuture (pid);
7878
79- LOG::LogF (LOGDEBUG, " Creating widevine session with promise ID: %u" , pid);
8079 m_cdmAdapter->GetCDM ()->CreateSessionAndGenerateRequest (
8180 pid, cdm::SessionType::kTemporary , cdm::InitDataType::kCenc ,
8281 m_pssh.data (), static_cast <uint32_t >(m_pssh.size ()));
@@ -141,8 +140,7 @@ void CWVCencSingleSampleDecrypter::GetCapabilities(const std::vector<uint8_t>& k
141140 if (!caps.hdcpLimit )
142141 caps.hdcpLimit = m_resolutionLimit;
143142
144- #ifdef TARGET_WEBOS
145- // optional override for webOS required for L1
143+ // optional override for webOS required for L1
146144 if (CSrvBroker::GetSettings ().IsSecurePathOverride ()) {
147145 LOG::LogF (LOGDEBUG,
148146 " Overriding settings to: SSD_SECURE PATH | SSD_ANNEXB_REQUIRED | SSD_SECURE_DECODER" );
@@ -152,7 +150,6 @@ void CWVCencSingleSampleDecrypter::GetCapabilities(const std::vector<uint8_t>& k
152150 caps.hdcpVersion = DRM::HDCP_V_MAX;
153151 return ;
154152 }
155- #endif
156153
157154 if ((caps.flags & DecrypterCapabilites::SSD_SUPPORTS_DECODING) != 0 )
158155 {
@@ -477,7 +474,7 @@ void CWVCencSingleSampleDecrypter::RepackSubsampleData(AP4_DataBuffer& dataIn,
477474{
478475#ifdef TARGET_WEBOS
479476 // with kStreamTypeVideo we need to handle the SVP header so it is not lost
480- if (streamType == cdm::StreamType:: kStreamTypeVideo ) {
477+ if (streamType == DRM::DRMMediaType::VIDEO ) {
481478 const size_t encryptedBytes = bytesOfEncryptedData[subsamplePos];
482479 const size_t clearBytes = bytesOfCleartextData[subsamplePos];
483480
@@ -590,7 +587,7 @@ AP4_Result CWVCencSingleSampleDecrypter::DecryptSampleData(AP4_UI32 poolId,
590587 dataIn, payload, subsampleCount, fragInfo, iv,
591588 bytesOfCleartextData, bytesOfEncryptedData, convertAnnexB, rebuiltSubs);
592589 if (res != AP4_SUCCESS) {
593- LOG::LogF (LOGERROR, " [DecryptSampleData] ConvertToAnnexB failed: %d" , res);
590+ LOG::LogF (LOGERROR, " ConvertToAnnexBandInject failed: %d" , res);
594591 return res;
595592 }
596593 }
@@ -641,8 +638,6 @@ AP4_Result CWVCencSingleSampleDecrypter::DecryptSampleData(AP4_UI32 poolId,
641638 // Prepare CDM input using rebuiltSubs
642639 cdm::InputBuffer_2 cdmIn;
643640 SetInput (cdmIn, payload, static_cast <uint32_t >(rebuiltSubs.size ()), iv, fragInfo, rebuiltSubs);
644- LOG::LogF (LOGDEBUG, " [DecryptSampleData] CDM input prepared [V=%d] subSampleCount=%u" ,
645- streamType, static_cast <unsigned >(rebuiltSubs.size ()));
646641
647642 const size_t header_cushion = 64 ;
648643 m_decryptOut.Reserve (payload.GetDataSize () + dataOut.GetDataSize () + header_cushion);
@@ -654,16 +649,14 @@ AP4_Result CWVCencSingleSampleDecrypter::DecryptSampleData(AP4_UI32 poolId,
654649
655650 CheckLicenseRenewal ();
656651
657- cdm::Status ret = m_cdmAdapter->GetCDM ()->Decrypt (cdmIn, &cdmOut, streamType);
652+ cdm::Status ret = m_cdmAdapter->GetCDM ()->Decrypt (cdmIn, &cdmOut, ToCdmStreamType ( streamType) );
658653 if (ret != cdm::kSuccess ) {
659654 LOG::LogF (LOGERROR, " [DecryptSampleData] CDM->Decrypt failed, status=%d" , static_cast <int >(ret));
660655 return AP4_ERROR_INVALID_FORMAT;
661656 }
662657
663658 // Prefix (if any) + SVP-wrapped payload
664659 dataOut.AppendData (m_decryptOut.GetData (), m_decryptOut.GetDataSize ());
665- LOG::LogF (LOGDEBUG, " [DecryptSampleData] Secure-path success, forwarding CDM output size=%zu" ,
666- dataOut.GetDataSize ());
667660#else
668661 // Prefix (if IV) + raw payload
669662 dataOut.AppendData (payload.GetData (), payload.GetDataSize ());
@@ -858,7 +851,6 @@ CWVCencSingleSampleDecrypter::ConvertToAnnexBandInject(
858851 packetIn[2 ] == 0x00 &&
859852 packetIn[3 ] == 0x01 ))
860853 {
861- LOG::LogF (LOGDEBUG, " Injecting annex b header" );
862854 dataOut.AppendData (annexbStartCode, 4 );
863855 }
864856
0 commit comments