summaryrefslogtreecommitdiffstats
path: root/ass_mp.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-09 22:35:53 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-09 22:35:53 +0200
commit9786d386679e814f814fc0eb2426086c1f3fd16e (patch)
treeb9d2be371df5e65859127b70fb3b95f26f7003af /ass_mp.h
parent173beb5608d893c0d9b42c1043f1dfa2db2e4df2 (diff)
downloadmpv-9786d386679e814f814fc0eb2426086c1f3fd16e.tar.bz2
mpv-9786d386679e814f814fc0eb2426086c1f3fd16e.tar.xz
subs: support loading external ASS subtitles via stream layer
Previously the argument of the "-sub" option was always interpreted as a local filename when trying to read it as a libass file. Use the stream layer to read it instead, so that protocols like 'http://' are also supported like they are for the main video/audio file. Based on patch by Yuriy Kaminskiy <yumkam@mail.ru>
Diffstat (limited to 'ass_mp.h')
-rw-r--r--ass_mp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ass_mp.h b/ass_mp.h
index 58ebae0938..a0b3f107b9 100644
--- a/ass_mp.h
+++ b/ass_mp.h
@@ -48,6 +48,7 @@ ASS_Track *ass_default_track(ASS_Library *library);
int ass_process_subtitle(ASS_Track *track, subtitle *sub);
ASS_Track *ass_read_subdata(ASS_Library *library, sub_data *subdata,
double fps);
+ASS_Track *ass_read_stream(ASS_Library *library, char *fname, char *charset);
void ass_configure(ASS_Renderer *priv, int w, int h, int hinting);
void ass_configure_fonts(ASS_Renderer *priv);