mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 02:16:40 +00:00
Fix incompatible pointer types warning, also seems to fix mis-compilation with gcc-4.4.1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29532 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6638304dbf
commit
3961e12fca
@ -235,7 +235,7 @@ add_cluster_position (mkv_demuxer_t *mkv_d, uint64_t position)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user