From 7c29364fbd26cbf34d3711834f11ee2368805b7f Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 27 Jan 2002 21:37:46 +0000 Subject: ETA/Esize for 3pass encoding from stdin git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4394 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index 4cfa0f30fa..86c259ef1d 100644 --- a/mencoder.c +++ b/mencoder.c @@ -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, -- cgit v1.2.3