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

diego subversion at mplayerhq.hu
Sun May 30 00:22:07 CEST 2010


Author: diego
Date: Sun May 30 00:22:07 2010
New Revision: 31276

Log:
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

Modified:
   trunk/libmpdemux/demux_mkv.c

Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	Sun May 30 00:17:26 2010	(r31275)
+++ trunk/libmpdemux/demux_mkv.c	Sun May 30 00:22:07 2010	(r31276)
@@ -1870,7 +1870,7 @@ static int demux_mkv_open_audio(demuxer_
             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'


More information about the MPlayer-cvslog mailing list