diff mencoder.c @ 17023:dd5be8f8d16d

buffering in the muxer layer; patch by Corey Hickey (bugfood-ml ad fatooh punctum org) plus small fixes by me
author nicodvb
date Mon, 21 Nov 2005 22:53:14 +0000
parents 3047b92e8402
children cf6bfdf41143
line wrap: on
line diff
--- a/mencoder.c	Mon Nov 21 21:17:27 2005 +0000
+++ b/mencoder.c	Mon Nov 21 22:53:14 2005 +0000
@@ -833,8 +833,6 @@
 	mux_v->bih->biCompression, (char *)&mux_v->bih->biCompression);
 }
 
-if(muxer->fix_stream_parameters)
-	  muxer_stream_fix_parameters(muxer,mux_v);
 //if(demuxer->file_format!=DEMUXER_TYPE_AVI) pts_from_bps=0; // it must be 0 for mpeg/asf!
 
 // ============= AUDIO ===============
@@ -933,14 +931,9 @@
     mux_a->h.dwStart=audio_delay_fix*mux_a->h.dwRate/mux_a->h.dwScale;
     mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_SettingAudioDelay,mux_a->h.dwStart*mux_a->h.dwScale/(float)mux_a->h.dwRate);
 }
-if(muxer->fix_stream_parameters)
-	  muxer_stream_fix_parameters(muxer,mux_a);
 
 } // if(sh_audio)
 
-mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_WritingAVIHeader);
-if (muxer->cont_write_header) muxer_write_header(muxer);
-
 decoded_frameno=0;
 
 signal(SIGINT,exit_sighandler);  // Interrupt from keyboard