summaryrefslogtreecommitdiffstats
path: root/demux/codec_tags.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-13 21:59:04 +0200
committerwm4 <wm4@nowhere>2015-06-13 22:34:23 +0200
commitfd88fb70aff630d4d6a861c02c63aeeca5e8f3ca (patch)
tree1051a092e9df6fdbad40e710c19bf2fe1a9965ff /demux/codec_tags.c
parentb33ab743e5ae9445a2efca932c432f00edb132f7 (diff)
downloadmpv-fd88fb70aff630d4d6a861c02c63aeeca5e8f3ca.tar.bz2
mpv-fd88fb70aff630d4d6a861c02c63aeeca5e8f3ca.tar.xz
demux_mkv: remove FourCCs from video codec handling
Inherited from MPlayer times, we used FourCCs to identify video codecs. This was later changed to libavcodec codec names (which made life a whole lot simpler). But demux_mkv still uses FourCCs a lot. Change this for video. It's pretty simple, because some preparation was done in the past. We just have to replace some "internal" FourCCs with different handling. One potentially complicated issue is that there is no natural way to set the sh->format (AVCodecContext.codec_tag) field anymore. Most decoders do not need it, though mjpeg is an exception. Note that the AVI compatibility code still requires codec mappings, but these are provided by FFmpeg. Also, the audio code is not changed. For the MKV_V_MPEG2 -> mpeg1video thing see next commit.
Diffstat (limited to 'demux/codec_tags.c')
-rw-r--r--demux/codec_tags.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c
index fd67933fbc..2d444dbc7c 100644
--- a/demux/codec_tags.c
+++ b/demux/codec_tags.c
@@ -30,13 +30,6 @@ struct mp_codec_tag {
static const struct mp_codec_tag mp_codec_tags[] = {
// Made-up tags used by demux_mkv.c to map codecs.
// (This is a leftover from MPlayer's codecs.conf mechanism.)
- {MKTAG('p', 'r', '0', '0'), "prores"},
- {MKTAG('H', 'E', 'V', 'C'), "hevc"},
- {MKTAG('R', 'V', '2', '0'), "rv20"},
- {MKTAG('R', 'V', '3', '0'), "rv30"},
- {MKTAG('R', 'V', '4', '0'), "rv40"},
- {MKTAG('R', 'V', '1', '0'), "rv10"},
- {MKTAG('R', 'V', '1', '3'), "rv10"},
{MKTAG('E', 'A', 'C', '3'), "eac3"},
{MKTAG('M', 'P', '4', 'A'), "aac"}, // also the QT tag
{MKTAG('v', 'r', 'b', 's'), "vorbis"},
@@ -51,12 +44,6 @@ static const struct mp_codec_tag mp_codec_tags[] = {
{MKTAG('d', 'n', 'e', 't'), "ac3"},
{MKTAG('s', 'i', 'p', 'r'), "sipr"},
{MKTAG('T', 'T', 'A', '1'), "tta"},
- // Fringe codecs, occur in the wild, but not mapped in FFmpeg.
- {MKTAG('B', 'I', 'K', 'b'), "binkvideo"},
- {MKTAG('B', 'I', 'K', 'f'), "binkvideo"},
- {MKTAG('B', 'I', 'K', 'g'), "binkvideo"},
- {MKTAG('B', 'I', 'K', 'h'), "binkvideo"},
- {MKTAG('B', 'I', 'K', 'i'), "binkvideo"},
{0}
};