summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-05 23:50:56 +0100
committerwm4 <wm4@nowhere>2014-12-05 23:50:56 +0100
commit09c701b797c44293dc0e22874b4acf0246b3d148 (patch)
tree2b34249e6f2ff51d3c12b9e9140896954935de28 /.gitignore
parentf911ef08aba8ccb53a3aa1eb4e9ae73c53242de3 (diff)
downloadmpv-09c701b797c44293dc0e22874b4acf0246b3d148.tar.bz2
mpv-09c701b797c44293dc0e22874b4acf0246b3d148.tar.xz
demux_playlist: detect headerless m3u files by extension
m3u files are normally just text files with a list of filenames. Nothing actually mandates that there is a header. Until now, we've rejected such files, because there's absolutely no way to detect them. If nothing else claims the file, the extension is ".m3u", and if the contents of the file look like text, then load it as m3u playlist. The text heuristic is pretty cheap, but at least it should prevent trying to load binary data as playlist. (Which would "work", but result in a catastrophic user experience.) Due to the text heuristic, UTF-16/32 files will be rejected (unless they have a header), but I don't care.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions