Found by OSS-Fuzz.
Unified · Split
| @@ -685,7 +685,7 @@ static int open_file(struct demuxer *demuxer, enum demux_check check) · 684 unmodified lines | ||
| 685 | 685 | bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL); |
| 686 | 686 | // Don't add base path to self-expanding protocols |
| 687 | 687 | if (bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") && |
| 688 | − bstrcasecmp0(proto, "hex")) | |
| 688 | + bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data")) | |
| 689 | 689 | { |
| 690 | 690 | playlist_add_base_path(p->pl, mp_dirname(demuxer->filename)); |
| 691 | 691 | } |