diff options
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 4 |
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, |