From: Jaroslav Kysela Date: Sun, 22 Nov 2015 18:58:49 +0000 (+0100) Subject: IPTV: http - AES128 HLS accept 0X and 0x for hexa IV X-Git-Tag: v4.2.1~1491 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5cb5a0c16ba0aac19ee9c2940ac11e077f5bedd2;p=thirdparty%2Ftvheadend.git IPTV: http - AES128 HLS accept 0X and 0x for hexa IV --- diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index 3c0553211..3c75a36ee 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -403,7 +403,8 @@ url: 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; }