diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-11-27 10:01:11 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-16 04:57:18 +0200 |
commit | bb4cca9b325e96c9c7f05e9a902998564e41ea13 (patch) | |
tree | 095402a1ab969baa72deb4de88ab5b8420c459f8 | |
parent | 04a3a3825f3638e04529e3deb6dbaf1bd2d46531 (diff) | |
download | mpv-bb4cca9b325e96c9c7f05e9a902998564e41ea13.tar.bz2 mpv-bb4cca9b325e96c9c7f05e9a902998564e41ea13.tar.xz |
av_sub: Support clearing subtitles
Makes PGS subtitles disappear at the appropriate time.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32651 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | av_sub.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -83,6 +83,8 @@ int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size, *endpts = *pts + sub.end_display_time / 1000.0; *pts += sub.start_display_time / 1000.0; } + if (got_sub && vo_spudec && sub.num_rects == 0) + spudec_set_paletted(vo_spudec, NULL, 0, NULL, 0, 0, 0, 0, *pts, *endpts); if (got_sub && sub.num_rects > 0) { switch (sub.rects[0]->type) { case SUBTITLE_BITMAP: |