From 0bb2f9ccb37fac55b3de1451f10686c18a93e727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 Feb 2014 18:15:45 +0100 Subject: hlsdemux: Don't try decryption if an unsupported method is found --- ext/hls/m3u8.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index df9f1d8fd..a5903b89a 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -465,6 +465,11 @@ gst_m3u8_update (GstM3U8 * self, gchar * data, gboolean * updated) continue; } have_iv = TRUE; + } else if (g_str_equal (a, "METHOD")) { + if (!g_str_equal (v, "AES-128")) { + GST_WARNING ("Encryption method %s not supported", v); + continue; + } } } } else if (g_str_has_prefix (data, "#EXTINF:")) { -- cgit v1.2.1