Cast void* pointer to appropriate type before using it in an addition; fixes

libmpdemux/demux_mkv.c:1873: warning: pointer of type 'void *' used in arithmetic


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31276 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-05-29 22:22:07 +00:00
parent 3f5d916cc4
commit 5007aa845f
1 changed files with 1 additions and 1 deletions

View File

@ -1870,7 +1870,7 @@ static int demux_mkv_open_audio(demuxer_t *demuxer, mkv_track_t *track,
size = track->private_size;
} else {
sh_a->format = mmioFOURCC('f', 'L', 'a', 'C');
ptr = track->private_data + sizeof(WAVEFORMATEX);
ptr = (unsigned char *) track->private_data + sizeof(WAVEFORMATEX);
size = track->private_size - sizeof(WAVEFORMATEX);
}
if (size < 4 || ptr[0] != 'f' || ptr[1] != 'L' || ptr[2] != 'a'