demux_playlist: add data:// to self-expanding protocols

Found by OSS-Fuzz.
This commit is contained in:
Kacper Michajłow 2024-11-01 13:53:56 +01:00
parent de42e11662
commit eb16169b27
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ static int open_file(struct demuxer *demuxer, enum demux_check check)
bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL); bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL);
// Don't add base path to self-expanding protocols // Don't add base path to self-expanding protocols
if (bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") && if (bstrcasecmp0(proto, "memory") && bstrcasecmp0(proto, "lavf") &&
bstrcasecmp0(proto, "hex")) bstrcasecmp0(proto, "hex") && bstrcasecmp0(proto, "data"))
{ {
playlist_add_base_path(p->pl, mp_dirname(demuxer->filename)); playlist_add_base_path(p->pl, mp_dirname(demuxer->filename));
} }