mirror of https://github.com/mpv-player/mpv
avg bps calc fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2656 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2468fadea2
commit
c929d09639
|
@ -637,10 +637,11 @@ if(sh_audio){
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
mux_a->wf->nAvgBytesPerSec=mux_a->size/mux_a->timer;
|
|
||||||
}
|
}
|
||||||
if(len<=0) break; // EOF?
|
if(len<=0) break; // EOF?
|
||||||
aviwrite_write_chunk(muxer,mux_a,muxer_f,len,0);
|
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){
|
if(mux_a->buffer_len>=len){
|
||||||
mux_a->buffer_len-=len;
|
mux_a->buffer_len-=len;
|
||||||
memcpy(mux_a->buffer,mux_a->buffer+len,mux_a->buffer_len);
|
memcpy(mux_a->buffer,mux_a->buffer+len,mux_a->buffer_len);
|
||||||
|
|
Loading…
Reference in New Issue