ETA/Esize for 3pass encoding from stdin

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4394 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-01-27 21:37:46 +00:00
parent 92d46e2cc2
commit 7c29364fbd
1 changed files with 4 additions and 0 deletions

View File

@ -1425,6 +1425,10 @@ if(sh_audio && !demuxer2){
{ 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,