mirror of https://github.com/mpv-player/mpv
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:
parent
92d46e2cc2
commit
7c29364fbd
|
@ -1425,6 +1425,10 @@ if(sh_audio && !demuxer2){
|
||||||
{ float t=(GetTimerMS()-timer_start)*0.001f;
|
{ float t=(GetTimerMS()-timer_start)*0.001f;
|
||||||
float len=(demuxer->movi_end-demuxer->movi_start);
|
float len=(demuxer->movi_end-demuxer->movi_start);
|
||||||
float p=len>1000 ? (float)(demuxer->filepos-demuxer->movi_start) / len : 0;
|
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
|
#if 0
|
||||||
mp_msg(MSGT_AVSYNC,MSGL_STATUS,"%d < %d < %d \r",
|
mp_msg(MSGT_AVSYNC,MSGL_STATUS,"%d < %d < %d \r",
|
||||||
(int)demuxer->movi_start,
|
(int)demuxer->movi_start,
|
||||||
|
|
Loading…
Reference in New Issue