[MPlayer-cvslog] r32651 - trunk/sub/av_sub.c
reimar
subversion at mplayerhq.hu
Sat Nov 27 11:01:11 CET 2010
Author: reimar
Date: Sat Nov 27 11:01:11 2010
New Revision: 32651
Log:
Support clearing subtitles. Makes PGS subtitles disappear at the appropriate time.
Modified:
trunk/sub/av_sub.c
Modified: trunk/sub/av_sub.c
==============================================================================
--- trunk/sub/av_sub.c Sat Nov 27 10:51:31 2010 (r32650)
+++ trunk/sub/av_sub.c Sat Nov 27 11:01:11 2010 (r32651)
@@ -82,6 +82,8 @@ int decode_avsub(struct sh_sub *sh, uint
*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:
More information about the MPlayer-cvslog
mailing list