diff options
author | wm4 <wm4@nowhere> | 2012-07-30 18:40:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-07-30 22:14:32 +0200 |
commit | 1fde09db6f4cee7347842261234082470dd3a2ca (patch) | |
tree | c05bf64b1b397a62e6f0b9cf295a6f9d0266eed2 /libmpdemux/parse_es.h | |
parent | 17b69493b70413326c95c3c552009626809b45ec (diff) | |
download | mpv-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 'libmpdemux/parse_es.h')
-rw-r--r-- | libmpdemux/parse_es.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/libmpdemux/parse_es.h b/libmpdemux/parse_es.h deleted file mode 100644 index ed76593e50..0000000000 --- a/libmpdemux/parse_es.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of MPlayer. - * - * MPlayer is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * MPlayer is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with MPlayer; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef MPLAYER_PARSE_ES_H -#define MPLAYER_PARSE_ES_H - -#include <stdint.h> - -#include "demuxer.h" - -#define MAX_VIDEO_PACKET_SIZE (224*1024+4) -#define VIDEOBUFFER_SIZE 0x100000 - -extern unsigned char* videobuffer; -extern int videobuf_len; -extern unsigned char videobuf_code[4]; -extern int videobuf_code_len; - -// sync video stream, and returns next packet code -int sync_video_packet(demux_stream_t *ds); - -// return: packet length -int read_video_packet(demux_stream_t *ds); - -// return: next packet code -int skip_video_packet(demux_stream_t *ds); - -int mp_a52_framesize(uint8_t *buf, int *srate); - -#endif /* MPLAYER_PARSE_ES_H */ |