Skip to content

Commit

Permalink
allow ForceClear=0 in CENC DRM
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Mar 1, 2024
1 parent 259dd90 commit 11c9f99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/media_tools/crypt_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,12 @@ static void cryptinfo_node_start(void *sax_cbck, const char *node_name, const ch
}
else if (!strnicmp(att->value, "ForceClear", 10)) {
char *sep = strchr(att->value, '=');
if (sep) tkc->sel_enc_range = atoi(sep+1);
tkc->sel_enc_type = GF_CRYPT_SELENC_CLEAR_FORCED;
if (sep) {
tkc->sel_enc_range = atoi(sep+1);
//if set to 0, move to no selective encryption
if (!tkc->sel_enc_range) tkc->sel_enc_type = GF_CRYPT_SELENC_NONE;
}
}
else if (!stricmp(att->value, "None")) {
} else {
Expand Down

0 comments on commit 11c9f99

Please sign in to comment.