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 committed 2024-05-08 18:52:40 +02:00
1 parent 49cb039b8c
commit d6803c4518
1 file changed
+1 -1
+1 -1
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++) {