[MPlayer-cvslog] r30580 - trunk/libmpdemux/demux_avi.c

reimar subversion at mplayerhq.hu
Sun Feb 14 15:48:55 CET 2010


Author: reimar
Date: Sun Feb 14 15:48:54 2010
New Revision: 30580

Log:
Simplify.

Modified:
   trunk/libmpdemux/demux_avi.c

Modified: trunk/libmpdemux/demux_avi.c
==============================================================================
--- trunk/libmpdemux/demux_avi.c	Sun Feb 14 15:47:22 2010	(r30579)
+++ trunk/libmpdemux/demux_avi.c	Sun Feb 14 15:48:54 2010	(r30580)
@@ -533,14 +533,15 @@ static demuxer_t* demux_open_avi(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;


More information about the MPlayer-cvslog mailing list