Skip to content

Commit c83f7b8

Browse files
committed
DELIA-68911 : Send no "clutSize" in modifyPalettedWatermark
Reason for change: Skip palette size parameter. Because of watermark plugin, which by default having logic that works for palette size of 256*4. When same watermark plugin is interacted from aamp instead of content protection, palette size parameter is not passed and defaulted to 256*4 inside watermark plugin. Test Procedure: None Risks: None Signed-off-by: Nikita Poltorapavlo <npoltorapavlo@productengine.com>
1 parent bd6c3ed commit c83f7b8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ContentProtection/ContentProtection.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,16 @@ namespace Plugin {
735735
out.ClutKey = params.WatermarkClutBufferKey;
736736
out.ClutSize = palette.Value().clutSize;
737737
out.ClutType = palette.Value().clutType;
738+
// Skip palette size parameter.
739+
// Because of watermark plugin, which
740+
// by default having logic that works for
741+
// palette size of 256*4. When same watermark
742+
// plugin is interacted from aamp instead of
743+
// content protection, palette size parameter
744+
// is not passed and defaulted to 256*4 inside
745+
// watermark plugin.
746+
out.Remove(_T("clutSize"));
747+
738748
Callback1 callback =
739749
[&, id](const JsonObject& in) {
740750
if (!in["success"].Boolean()) {

0 commit comments

Comments
 (0)