changeset 2600:51a88ac2a602

nosound fixed?
author arpi
date Wed, 31 Oct 2001 22:59:56 +0000
parents 8286ce06dfa1
children 81c0f3e487eb
files mencoder.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Wed Oct 31 22:04:28 2001 +0000
+++ b/mencoder.c	Wed Oct 31 22:59:56 2001 +0000
@@ -181,6 +181,8 @@
     exit(0);  // From unknown reason a hangup occurs here :((((((
   }
 
+  dvd_title=2;
+
   if(argc>1)
     stream=open_stream(argv[1],0,&file_format);
   else
@@ -430,6 +432,7 @@
 }
 
 #if 1
+if(sh_audio)
 switch(mux_a->codec){
 case ACODEC_VBRMP3:
 
@@ -534,6 +537,7 @@
 
     sh_video->timer+=frame_time;
 
+if(sh_audio){
     if(pts_from_bps){
         unsigned int samples=(sh_audio->audio.dwSampleSize)?
           ((ds_tell(d_audio)-sh_audio->a_in_buffer_len)/sh_audio->audio.dwSampleSize) :
@@ -549,6 +553,8 @@
     }
     v_pts=d_video->pts;
 
+}
+
     mp_msg(MSGT_AVSYNC,MSGL_STATUS,"A:%6.1f V:%6.1f A-V:%7.3f ct:%7.3f  %3d/%3d  %2d%% %2d%% %4.1f%%  %d%%\r",
 	  a_pts,v_pts,a_pts-v_pts,c_total,
           (int)sh_video->num_frames,(int)sh_video->num_frames_decoded,