From fd88fb70aff630d4d6a861c02c63aeeca5e8f3ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 13 Jun 2015 21:59:04 +0200 Subject: 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. --- demux/codec_tags.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'demux/codec_tags.c') 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} }; -- cgit v1.2.3