Mercurial > mplayer.hg
changeset 2655:40fbed77bbb8
avg bps calc fixed
author | arpi |
---|---|
date | Sat, 03 Nov 2001 21:09:21 +0000 |
parents | ad3a6bcad1d7 |
children | 63bde78ec880 |
files | mencoder.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Sat Nov 03 21:01:12 2001 +0000 +++ b/mencoder.c Sat Nov 03 21:09:21 2001 +0000 @@ -637,10 +637,11 @@ } break; } - mux_a->wf->nAvgBytesPerSec=mux_a->size/mux_a->timer; } if(len<=0) break; // EOF? aviwrite_write_chunk(muxer,mux_a,muxer_f,len,0); + if(!mux_a->h.dwSampleSize && mux_a->timer>0) + mux_a->wf->nAvgBytesPerSec=mux_a->size/mux_a->timer; // avg bps (VBR) if(mux_a->buffer_len>=len){ mux_a->buffer_len-=len; memcpy(mux_a->buffer,mux_a->buffer+len,mux_a->buffer_len);