mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 10:26:09 +00:00
Simplify.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30580 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2e98215f13
commit
5522068821
@ -533,14 +533,15 @@ static demuxer_t* demux_open_avi(demuxer_t* demuxer){
|
||||
// calculating audio/video bitrate:
|
||||
if(priv->idx_size>0){
|
||||
// we have index, let's count 'em!
|
||||
AVIINDEXENTRY *idx = priv->idx;
|
||||
int64_t vsize=0;
|
||||
int64_t asize=0;
|
||||
size_t vsamples=0;
|
||||
size_t asamples=0;
|
||||
int i;
|
||||
for(i=0;i<priv->idx_size;i++){
|
||||
int id=avi_stream_id(((AVIINDEXENTRY *)priv->idx)[i].ckid);
|
||||
int len=((AVIINDEXENTRY *)priv->idx)[i].dwChunkLength;
|
||||
int id=avi_stream_id(idx[i].ckid);
|
||||
int len=idx[i].dwChunkLength;
|
||||
if(sh_video->ds->id == id) {
|
||||
vsize+=len;
|
||||
++vsamples;
|
||||
|
Loading…
Reference in New Issue
Block a user