]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: http - AES128 HLS accept 0X and 0x for hexa IV
authorJaroslav Kysela <perex@perex.cz>
Sun, 22 Nov 2015 18:58:49 +0000 (19:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 22 Nov 2015 18:58:49 +0000 (19:58 +0100)
src/input/mpegts/iptv/iptv_http.c

index 3c0553211fe2fc025a712bd6848cdd1ea402706c..3c75a36ee1eddb23b8af0e01f0f94de5343cf2a8 100644 (file)
@@ -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;
         }