aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-05-07 19:05:13 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-05-07 23:23:23 +0800
commiteb390d7f9d964c229bff251a4253518145254e6e (patch)
tree4d9b81aed732dd14cedec047bfee05e809aa8a7e /libavformat/hls.c
parentf140239777270161bfdf3964bfb057b43ad66a1a (diff)
downloadffmpeg-eb390d7f9d964c229bff251a4253518145254e6e.tar.gz
avformat/hls: use av_strncasecmp()
Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 584f658fe4..8fc6924c90 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -799,7 +799,7 @@ static int parse_playlist(HLSContext *c, const char *url,
key_type = KEY_AES_128;
if (!strcmp(info.method, "SAMPLE-AES"))
key_type = KEY_SAMPLE_AES;
- if (!strncmp(info.iv, "0x", 2) || !strncmp(info.iv, "0X", 2)) {
+ if (!av_strncasecmp(info.iv, "0x", 2)) {
ff_hex_to_data(iv, info.iv + 2);
has_iv = 1;
}