mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
af_export: Avoid void *-arithmentic warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31608 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2308e045de
commit
caf32aef3f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user