summaryrefslogtreecommitdiffstats
path: root/sub/lavc_conv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-27 02:07:01 +0100
committerwm4 <wm4@nowhere>2015-12-27 02:13:06 +0100
commitd85753b79e4ce0fa7a5ddac5b2ed0cf65f7aecd8 (patch)
tree4c4844981e89c7ad056d0e52335b2d963e37d44b /sub/lavc_conv.c
parent50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec (diff)
downloadmpv-d85753b79e4ce0fa7a5ddac5b2ed0cf65f7aecd8.tar.bz2
mpv-d85753b79e4ce0fa7a5ddac5b2ed0cf65f7aecd8.tar.xz
sub: refactor initialization
Just simplify by removing parts not needed anymore. This includes merging dec_sub allocation and initialization (since things making initialization complicated were removed), or format support queries (it simply tries to create a decoder, and if that fails, tries the next one).
Diffstat (limited to 'sub/lavc_conv.c')
-rw-r--r--sub/lavc_conv.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sub/lavc_conv.c b/sub/lavc_conv.c
index 7e2ed4ef25..b244240d7c 100644
--- a/sub/lavc_conv.c
+++ b/sub/lavc_conv.c
@@ -49,15 +49,6 @@ static const char *get_lavc_format(const char *format)
return format;
}
-bool lavc_conv_supports_format(const char *format)
-{
- format = get_lavc_format(format);
- enum AVCodecID cid = mp_codec_to_av_codec_id(format);
- AVCodec *codec = avcodec_find_decoder(cid);
- const AVCodecDescriptor *desc = avcodec_descriptor_get(cid);
- return codec && desc && desc->type == AVMEDIA_TYPE_SUBTITLE;
-}
-
// Disable style definitions generated by the libavcodec converter.
// We always want the user defined style instead.
static void disable_styles(bstr header)