avg bps calc fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2656 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-11-03 21:09:21 +00:00
parent 2468fadea2
commit c929d09639
1 changed files with 2 additions and 1 deletions

View File

@ -637,10 +637,11 @@ if(sh_audio){
}
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);