summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-18 21:11:49 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-19 13:39:39 +0900
commitb3d2daaa1d47a0b5a0b8122575abefb97b89322c (patch)
tree231c150dbea680fca9c5bdcaab62f55a86d78778
parent3437ea23f67d88c571e8ea956fb9643807fcaf54 (diff)
downloadmpv-b3d2daaa1d47a0b5a0b8122575abefb97b89322c.tar.bz2
mpv-b3d2daaa1d47a0b5a0b8122575abefb97b89322c.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. (cherry picked from commit 79006ef66d10fb356782eed6d3b3cc103ae2ba4b)
-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 8ec6a5ce6d..5327bc8feb 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -125,6 +125,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"),