changeset 31210:8314717ef431

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
author diego
date Sat, 29 May 2010 22:22:07 +0000
parents b815817d6037
children 7c2a244950ba
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Sat May 29 22:17:26 2010 +0000
+++ b/libmpdemux/demux_mkv.c	Sat May 29 22:22:07 2010 +0000
@@ -1870,7 +1870,7 @@
             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'