diff mencoder.c @ 33701:09bdaa0c82b3

Make vobsub options available in mencoder, though with my test file it seems to not work quite right but stops adding subtitles after some minutes.
author reimar
date Fri, 01 Jul 2011 17:43:40 +0000
parents c111d9e9cfb0
children 489f118781b7
line wrap: on
line diff
--- a/mencoder.c	Fri Jul 01 15:17:53 2011 +0000
+++ b/mencoder.c	Fri Jul 01 17:43:40 2011 +0000
@@ -777,6 +777,8 @@
     }
   }
 
+  vo_vobsub = vobsub_open(vobsub_name, spudec_ifo, 1, &vo_spudec);
+
 // set up video encoder:
 
 if (!curfile) { // curfile is non zero when a second file is opened
@@ -806,7 +808,7 @@
     }
 #endif
 }
-else {
+else if (!vo_spudec) {
 init_vo_spudec(stream, sh_video, d_dvdsub ? d_dvdsub->sh : NULL);
 }