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.
This commit is contained in:
wm4
2013-06-01 19:54:31 +02:00
parent e19ffa02aa
commit b11bd1fe5e
5 changed files with 152 additions and 0 deletions

View File

@@ -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);