Else nested edl protocol causes infinite recursion, when loading. Found by OSS-Fuzz.
Unified · Split
| @@ -567,7 +567,7 @@ error: · 566 unmodified lines | |||
| 567 | 567 | ||
| 568 | static void fix_filenames(struct tl_parts *parts, char *source_path) | 568 | static void fix_filenames(struct tl_parts *parts, char *source_path) |
| 569 | { | 569 | { |
| 570 | if (bstr_equals0(mp_split_proto(bstr0(source_path), NULL), "edl")) | 570 | if (!bstrcasecmp0(mp_split_proto(bstr0(source_path), NULL), "edl")) |
| 571 | return; | 571 | return; |
| 572 | struct bstr dirname = mp_dirname(source_path); | 572 | struct bstr dirname = mp_dirname(source_path); |
| 573 | for (int n = 0; n < parts->num_parts; n++) { | 573 | for (int n = 0; n < parts->num_parts; n++) { |