[Mplayer-cvslog] CVS: main mplayer.c,1.332,1.333
Arpi of Ize
arpi at mplayer.dev.hu
Mon Dec 3 02:03:40 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv20095
Modified Files:
mplayer.c
Log Message:
mpeg subtitle flickering patch by Evgeny Chukreev <codedj at echo.ru>
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.332
retrieving revision 1.333
diff -u -r1.332 -r1.333
--- mplayer.c 1 Dec 2001 22:54:17 -0000 1.332
+++ mplayer.c 3 Dec 2001 01:03:17 -0000 1.333
@@ -391,6 +391,7 @@
#ifdef USE_SUB
static subtitle* subtitles=NULL;
+float sub_last_pts = -303;
#endif
static demuxer_t *demuxer=NULL;
@@ -2068,7 +2069,10 @@
float pts=d_video->pts;
if(sub_fps==0) sub_fps=sh_video->fps;
current_module="find_sub";
- find_sub(subtitles,sub_uses_time?(100*(pts+sub_delay)):((pts+sub_delay)*sub_fps)); // FIXME! frame counter...
+ if (pts > sub_last_pts || pts < sub_last_pts-1.0 ) {
+ find_sub(subtitles,sub_uses_time?(100*(pts+sub_delay)):((pts+sub_delay)*sub_fps)); // FIXME! frame counter...
+ sub_last_pts = pts;
+ }
current_module=NULL;
}
#endif
More information about the MPlayer-cvslog
mailing list