Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Aug 30, 2024
1 parent 40a95a7 commit 2a501b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/decrypters/HelperPr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using namespace UTILS;
namespace
{
constexpr uint16_t PLAYREADY_WRM_TAG = 0x0001;
constexpr const char* PLAYREADY_MOCK_LA_URL = "https://x";
constexpr const char* PLAYREADY_MOCK_LA_URL = "https://www.mock.la.url";

// \brief Convert a PlayReady KID to Widevine KID format
std::vector<uint8_t> ConvertKidtoWv(std::vector<uint8_t> kid)
Expand Down Expand Up @@ -73,6 +73,7 @@ void FixWRMHeaderLaUrl(std::string& xmlData)
// Missing LA_URL add a mock value
pugi::xml_node newNodeLaUrl = nodeDATA.append_child("LA_URL");
newNodeLaUrl.append_child(pugi::node_pcdata).set_value(PLAYREADY_MOCK_LA_URL);
LOG::Log(LOGDEBUG, "Fix missing LA_URL to PlayReady header.");
}
else
{
Expand All @@ -81,6 +82,7 @@ void FixWRMHeaderLaUrl(std::string& xmlData)
if (laUrl.empty())
{
nodeLaUrl.append_child(pugi::node_pcdata).set_value(PLAYREADY_MOCK_LA_URL);
LOG::Log(LOGDEBUG, "Fix missing LA_URL to PlayReady header.");
}
}

Expand Down

0 comments on commit 2a501b7

Please sign in to comment.