summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-27 21:37:46 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-27 21:37:46 +0000
commit7c29364fbd26cbf34d3711834f11ee2368805b7f (patch)
tree869c0692f23b8fde3d78698291de80b116bbe60c /mencoder.c
parent92d46e2cc2f6d36a658ff7f6e1f11ee52f4f0080 (diff)
downloadmpv-7c29364fbd26cbf34d3711834f11ee2368805b7f.tar.bz2
mpv-7c29364fbd26cbf34d3711834f11ee2368805b7f.tar.xz
ETA/Esize for 3pass encoding from stdin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4394 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c4
1 files changed, 4 insertions, 0 deletions
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,