From caf32aef3f819236900179ef682077bef6af406f Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 1 Jul 2010 20:49:35 +0000 Subject: af_export: Avoid void *-arithmentic warnings git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31608 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/af_export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libaf/af_export.c') diff --git a/libaf/af_export.c b/libaf/af_export.c index e3eb917fc7..780df80a93 100644 --- a/libaf/af_export.c +++ b/libaf/af_export.c @@ -55,7 +55,7 @@ typedef struct af_export_s int wi; // Write index int fd; // File descriptor to shared memory area char* filename; // File to export data - void* mmap_area; // MMap shared area + uint8_t *mmap_area; // MMap shared area } af_export_t; @@ -98,7 +98,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg) if(NULL == s->buf[0]) mp_msg(MSGT_AFILTER, MSGL_FATAL, "[export] Out of memory\n"); for(i = 1; i < af->data->nch; i++) - s->buf[i] = s->buf[0] + i*s->sz*af->data->bps; + s->buf[i] = (uint8_t *)s->buf[0] + i*s->sz*af->data->bps; // Init memory mapping s->fd = open(s->filename, O_RDWR | O_CREAT | O_TRUNC, 0640); -- cgit v1.2.3