summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-18 21:11:49 +0100
committerwm4 <wm4@nowhere>2015-02-18 21:13:11 +0100
commit79006ef66d10fb356782eed6d3b3cc103ae2ba4b (patch)
tree753a7fa46968722a36c7f785d6b2c7783d5b0b72 /demux
parent3f5b5b758dac511f500fdfd9ae85089cbfc31fde (diff)
downloadmpv-79006ef66d10fb356782eed6d3b3cc103ae2ba4b.tar.bz2
mpv-79006ef66d10fb356782eed6d3b3cc103ae2ba4b.tar.xz
demux_lavf: blacklist bintext files
Whatever the hell that is. FFmpeg tries to open any files with .bin file extension with this demuxer (unless it finds a better demuxer), and then reads the whole damn file, along with spamming dumb crap.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index ca7004c43b..020f73d41a 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -132,6 +132,9 @@ static const struct format_hack format_hacks[] = {
// Useless non-sense, sometimes breaks MLP2 subreader.c fallback
BLACKLIST("tty"),
+ // Let's open files with extremely generic extensions (.bin) with a
+ // demuxer that doesn't have a probe function! NO.
+ BLACKLIST("bin"),
// Image demuxers, disabled in favor of demux_mf (for now):
BLACKLIST("image"),
BLACKLIST("image2pipe"),