mirror of https://github.com/mpv-player/mpv
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:
parent
3f5d916cc4
commit
5007aa845f
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue