diff options
author | wm4 <wm4@nowhere> | 2015-12-27 02:07:01 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-27 02:13:06 +0100 |
commit | d85753b79e4ce0fa7a5ddac5b2ed0cf65f7aecd8 (patch) | |
tree | 4c4844981e89c7ad056d0e52335b2d963e37d44b /sub/sd_ass.c | |
parent | 50c379e2d8a2cee0fcdbadbcbf5d0a0617fdafec (diff) | |
download | mpv-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/sd_ass.c')
-rw-r--r-- | sub/sd_ass.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index d798b1f4f4..564a62133d 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -125,12 +125,6 @@ static void add_subtitle_fonts(struct sd *sd) } } -static bool supports_format(const char *format) -{ - return (format && strcmp(format, "ass") == 0) || - lavc_conv_supports_format(format); -} - static void enable_output(struct sd *sd, bool enable) { struct sd_ass_priv *ctx = sd->priv; @@ -633,7 +627,6 @@ static int control(struct sd *sd, enum sd_ctrl cmd, void *arg) const struct sd_functions sd_ass = { .name = "ass", .accept_packets_in_advance = true, - .supports_format = supports_format, .init = init, .decode = decode, .get_bitmaps = get_bitmaps, |