mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/hls: use av_strncasecmp()
Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
f140239777
commit
eb390d7f9d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue