0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

demux_edl: make protocol comparison case insensitive

Else nested edl protocol causes infinite recursion, when loading.

Found by OSS-Fuzz.
This commit is contained in:
Kacper Michajłow 2024-05-08 18:07:48 +02:00
parent 49cb039b8c
commit d6803c4518

View File

@ -567,7 +567,7 @@ error:
static void fix_filenames(struct tl_parts *parts, char *source_path)
{
if (bstr_equals0(mp_split_proto(bstr0(source_path), NULL), "edl"))
if (!bstrcasecmp0(mp_split_proto(bstr0(source_path), NULL), "edl"))
return;
struct bstr dirname = mp_dirname(source_path);
for (int n = 0; n < parts->num_parts; n++) {