summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-30 18:40:46 +0200
committerwm4 <wm4@nowhere>2012-07-30 22:14:32 +0200
commit1fde09db6f4cee7347842261234082470dd3a2ca (patch)
treec05bf64b1b397a62e6f0b9cf295a6f9d0266eed2 /stream
parent17b69493b70413326c95c3c552009626809b45ec (diff)
downloadmpv-1fde09db6f4cee7347842261234082470dd3a2ca.tar.bz2
mpv-1fde09db6f4cee7347842261234082470dd3a2ca.tar.xz
Remove some demuxers and decoders
Most of these demuxers and decoders are provided in better form by libav, while the mplayer builtin ones are essentially unmaintained. The only legimitate use case for not using the libav ones was working around libav bugs or bugs related to the way mplayer uses libav. Instead of trying to keep dead code alive, development effort should go into improving libav or the mplayer libav glue code. Note that the libav demuxer have been preferred over the mplayer builtin ones for a while in mplayer2. There were some exceptions: playing DVDs with dvdnav or playing network sources. (That's because some stream modules and network.c requested explicit file formats, such as DEMUXER_TYPE_MPEG_PS, which mapped to builtin demuxers.) With this commit, they are switched to use libav. One caveat is that the requested format is not passed to libavformat, instead we rely on the auto probing to select the correct libav demuxer (see code in demux_open_stream()).
Diffstat (limited to 'stream')
-rw-r--r--stream/network.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/stream/network.c b/stream/network.c
index 0961c8d12b..b1212ab5e2 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -65,23 +65,8 @@ int network_ipv4_only_proxy = 0;
const mime_struct_t mime_type_table[] = {
- // Flash Video
- { "video/x-flv", DEMUXER_TYPE_LAVF_PREFERRED},
- // do not force any demuxer in this case!
- // we want the lavf demuxer to be tried first (happens automatically anyway),
- // but for mov reference files to work we must also try
- // the native demuxer if lavf fails.
- { "video/quicktime", 0 },
// MP3 streaming, some MP3 streaming server answer with audio/mpeg
{ "audio/mpeg", DEMUXER_TYPE_AUDIO },
- // MPEG streaming
- { "video/mpeg", DEMUXER_TYPE_UNKNOWN },
- { "video/x-mpeg", DEMUXER_TYPE_UNKNOWN },
- { "video/x-mpeg2", DEMUXER_TYPE_UNKNOWN },
- // AVI ??? => video/x-msvideo
- { "video/x-msvideo", DEMUXER_TYPE_AVI },
- // MOV => video/quicktime
- { "video/quicktime", DEMUXER_TYPE_MOV },
// ASF
{ "audio/x-ms-wax", DEMUXER_TYPE_ASF },
{ "audio/x-ms-wma", DEMUXER_TYPE_ASF },
@@ -91,7 +76,6 @@ const mime_struct_t mime_type_table[] = {
{ "video/x-ms-wma", DEMUXER_TYPE_ASF },
{ "application/x-mms-framed", DEMUXER_TYPE_ASF },
{ "application/vnd.ms.wms-hdr.asfv1", DEMUXER_TYPE_ASF },
- { "application/octet-stream", DEMUXER_TYPE_UNKNOWN },
// Playlists
{ "video/x-ms-wmx", DEMUXER_TYPE_PLAYLIST },
{ "video/x-ms-wvx", DEMUXER_TYPE_PLAYLIST },
@@ -100,11 +84,6 @@ const mime_struct_t mime_type_table[] = {
{ "audio/x-pls", DEMUXER_TYPE_PLAYLIST },
// Real Media
// { "audio/x-pn-realaudio", DEMUXER_TYPE_REAL },
- // OGG Streaming
- { "application/x-ogg", DEMUXER_TYPE_OGG },
- // NullSoft Streaming Video
- { "video/nsv", DEMUXER_TYPE_NSV},
- { "misc/ultravox", DEMUXER_TYPE_NSV},
{ NULL, DEMUXER_TYPE_UNKNOWN},
};