[Mplayer-cvslog] CVS: main mencoder.c,1.72,1.73

Arpi of Ize arpi at mplayer.dev.hu
Sun Jan 27 22:37:49 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv10162

Modified Files:
	mencoder.c 
Log Message:
ETA/Esize for 3pass encoding from stdin

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -r1.72 -r1.73
--- mencoder.c	27 Jan 2002 20:34:31 -0000	1.72
+++ mencoder.c	27 Jan 2002 21:37:46 -0000	1.73
@@ -1425,6 +1425,10 @@
     {	float t=(GetTimerMS()-timer_start)*0.001f;
 	float len=(demuxer->movi_end-demuxer->movi_start);
 	float p=len>1000 ? (float)(demuxer->filepos-demuxer->movi_start) / len : 0;
+	if(!len && sh_audio && sh_audio->audio.dwLength>100){
+	    p=(sh_audio->audio.dwSampleSize? ds_tell(sh_audio->ds)/sh_audio->audio.dwSampleSize : sh_audio->ds->pack_no)
+	     / (float)(sh_audio->audio.dwLength);
+	}
 #if 0
 	mp_msg(MSGT_AVSYNC,MSGL_STATUS,"%d < %d < %d  \r",
 	    (int)demuxer->movi_start,




More information about the MPlayer-cvslog mailing list