changeset 1762:914bdbe33cf8

-dumpsub works for avi, then dumps .sub file
author arpi
date Wed, 29 Aug 2001 20:22:23 +0000
parents 827b551bbcab
children 6a39b29c5862
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Aug 29 20:15:41 2001 +0000
+++ b/mplayer.c	Wed Aug 29 20:22:23 2001 +0000
@@ -591,6 +591,8 @@
   }
 #endif
 
+  if(subtitles && stream_dump_type==3) list_sub_file(subtitles);
+
     stream=NULL;
     demuxer=NULL;
     d_audio=NULL;
@@ -1784,7 +1786,7 @@
 #ifdef USE_SUB
   // find sub
   if(subtitles && d_video->pts>0){
-      int pts=d_video->pts;
+      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...