[MPlayer-cvslog] r29532 - trunk/libmpdemux/demux_mkv.c

reimar subversion at mplayerhq.hu
Mon Aug 17 10:02:37 CEST 2009


Author: reimar
Date: Mon Aug 17 10:02:37 2009
New Revision: 29532

Log:
Fix incompatible pointer types warning, also seems to fix mis-compilation with gcc-4.4.1

Modified:
   trunk/libmpdemux/demux_mkv.c

Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	Mon Aug 17 09:30:24 2009	(r29531)
+++ trunk/libmpdemux/demux_mkv.c	Mon Aug 17 10:02:37 2009	(r29532)
@@ -235,7 +235,7 @@ add_cluster_position (mkv_demuxer_t *mkv
     if (mkv_d->cluster_positions[i] == position)
       return;
 
-  grow_array(&mkv_d->cluster_positions, mkv_d->num_cluster_pos,
+  grow_array((void **)&mkv_d->cluster_positions, mkv_d->num_cluster_pos,
              sizeof(uint64_t));
   mkv_d->cluster_positions[mkv_d->num_cluster_pos++] = position;
 }
@@ -1079,7 +1079,7 @@ demux_mkv_read_cues (demuxer_t *demuxer)
       if (time != EBML_UINT_INVALID && track != EBML_UINT_INVALID
           && pos != EBML_UINT_INVALID)
         {
-          grow_array(&mkv_d->indexes, mkv_d->num_indexes, sizeof(mkv_index_t));
+          grow_array((void **)&mkv_d->indexes, mkv_d->num_indexes, sizeof(mkv_index_t));
           mkv_d->indexes[mkv_d->num_indexes].tnum = track;
           mkv_d->indexes[mkv_d->num_indexes].timecode = time;
           mkv_d->indexes[mkv_d->num_indexes].filepos =mkv_d->segment_start+pos;


More information about the MPlayer-cvslog mailing list