mirror of https://github.com/mpv-player/mpv
c2a7c37b76
When dragging a vobsub idx file onto the mpv window, the file will be a URL, such as file:///path/to/subs.idx mpv then tries to guess the corressponding vobsub sub file for that idx file, and then passes that guess to ffmpeg. ffmpeg then internally removes the file:// prefix and does a open() call. The problem occurs if the URL contains non-ASCII characters where we see percent encoding. The URL is not decoded and passed to ffmpeg directly, so ffmpeg tries to open /path/to/%E5%A4%A9/subs.sub which obviously doesn't exist. The idx file works becuase we decode that somewhere else before passing to ffmpeg. If we know the vobsub idx file path is a URL, update the filename we use for the vobsub sub file guess to use the decoded path to the vobsub idx file Signed-off-by: Nick Sarnie <sarnex@gentoo.org> |
||
---|---|---|
.. | ||
cache.c | ||
cache.h | ||
codec_tags.c | ||
codec_tags.h | ||
cue.c | ||
cue.h | ||
demux.c | ||
demux.h | ||
demux_cue.c | ||
demux_disc.c | ||
demux_edl.c | ||
demux_lavf.c | ||
demux_libarchive.c | ||
demux_mf.c | ||
demux_mkv.c | ||
demux_mkv_timeline.c | ||
demux_null.c | ||
demux_playlist.c | ||
demux_raw.c | ||
demux_timeline.c | ||
ebml.c | ||
ebml.h | ||
matroska.h | ||
packet.c | ||
packet.h | ||
stheader.h | ||
timeline.c | ||
timeline.h |