changeset 30538:571231765512

Simplify.
author reimar
date Sun, 14 Feb 2010 14:48:54 +0000
parents 7bebe34b6ad2
children 437b251e4194
files libmpdemux/demux_avi.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c	Sun Feb 14 14:47:22 2010 +0000
+++ b/libmpdemux/demux_avi.c	Sun Feb 14 14:48:54 2010 +0000
@@ -533,14 +533,15 @@
   // 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;