Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IPTV: http - AES128 HLS accept 0X and 0x for hexa IV
  • Loading branch information
perexg committed Nov 22, 2015
1 parent 0a7365a commit 5cb5a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/iptv/iptv_http.c
Expand Up @@ -403,7 +403,8 @@ iptv_http_complete
memset(&hp->hls_aes128.iv, 0, sizeof(hp->hls_aes128.iv));
s = htsmsg_get_str(hp->hls_key, "IV");
if (s != NULL) {
if (s[0] != '0' || s[1] != 'x' || strlen(s) != (AES_BLOCK_SIZE * 2) + 2) {
if (s[0] != '0' || (s[1] != 'x' && s[1] != 'X') ||
strlen(s) != (AES_BLOCK_SIZE * 2) + 2) {
tvherror("iptv", "unknown IV type or length (%s)", s);
goto end;
}
Expand Down

0 comments on commit 5cb5a0c

Please sign in to comment.