mirror of https://github.com/mpv-player/mpv
demux_playlist: add data:// to self-expanding protocols
Found by OSS-Fuzz.
This commit is contained in:
parent
de42e11662
commit
eb16169b27
|
@ -685,7 +685,7 @@ static int open_file(struct demuxer *demuxer, enum demux_check check)
|
|||
bstr proto = mp_split_proto(bstr0(demuxer->filename), NULL);
|
||||
// Don't add base path to self-expanding protocols
|
||||
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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue