diff options
author | Tom Yan <tom.ty89@gmail.com> | 2018-11-24 09:48:41 +0800 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-09-02 01:24:26 +0300 |
commit | 763eaad2aa4fd7046df5b2599d9d02bd9babf16f (patch) | |
tree | 862cab6b042920abcd9b2db766a4a8ca957f94be /demux | |
parent | c8424a3bee0ccc1ad25a1001301a78d1c0beaf90 (diff) | |
download | mpv-763eaad2aa4fd7046df5b2599d9d02bd9babf16f.tar.bz2 mpv-763eaad2aa4fd7046df5b2599d9d02bd9babf16f.tar.xz |
demux: ignore forced demuxer type for directories
this for example allows --demuxer=rawaudio to work on directories
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c index 45a2ad65b6..d55c670d19 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -2475,7 +2475,7 @@ struct demuxer *demux_open(struct stream *stream, struct demuxer_params *params, if (!force_format) force_format = stream->demuxer; - if (force_format && force_format[0]) { + if (force_format && force_format[0] && !stream->is_directory) { check_levels = d_request; if (force_format[0] == '+') { force_format += 1; |