summaryrefslogtreecommitdiffstats
path: root/sub/sd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-01 19:54:31 +0200
committerwm4 <wm4@nowhere>2013-06-03 22:40:06 +0200
commitb11bd1fe5e82fb7cd9aa912c2b1c98de8704bb87 (patch)
treebf29ab506fe835b33da2464a0053e0d461e5cb2e /sub/sd.h
parente19ffa02aa370cbc3b559f85b286ea09b06ab29b (diff)
downloadmpv-b11bd1fe5e82fb7cd9aa912c2b1c98de8704bb87.tar.bz2
mpv-b11bd1fe5e82fb7cd9aa912c2b1c98de8704bb87.tar.xz
sub: make use of libavcodec subtitle converters
This allows using some formats that were not supported until now, like WebVTT. We still prefer the internal subtitle reader (subreader.c), because 1. Libav, and 2. random things which we probably want to keep, such as control over formatting, codepage stuff, or various mysterious postprecessing done in that code.
Diffstat (limited to 'sub/sd.h')
-rw-r--r--sub/sd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/sd.h b/sub/sd.h
index dbb6af835f..20dce8003d 100644
--- a/sub/sd.h
+++ b/sub/sd.h
@@ -44,6 +44,8 @@ struct sd_functions {
void (*reset)(struct sd *sd);
void (*uninit)(struct sd *sd);
+ void (*fix_events)(struct sd *sd);
+
// decoder
void (*get_bitmaps)(struct sd *sd, struct mp_osd_res dim, double pts,
struct sub_bitmaps *res);