Mercurial > mplayer.hg
changeset 4393:177e31fc74eb
ETA/Esize for 3pass encoding from stdin
author | arpi |
---|---|
date | Sun, 27 Jan 2002 21:37:46 +0000 |
parents | b50b2b0c65ea |
children | e8b73a96b736 |
files | mencoder.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Sun Jan 27 20:34:31 2002 +0000 +++ b/mencoder.c Sun Jan 27 21:37:46 2002 +0000 @@ -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,