mirror of
https://github.com/mpv-player/mpv
synced 2025-02-08 07:57:19 +00:00
bzero is deprecated patch by Gianluigi Tiesi <mplayer at netfarm.it>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14643 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d41002d21b
commit
b08e2e7c08
@ -460,7 +460,7 @@ static void reset()
|
|||||||
|
|
||||||
/* zero output buffer */
|
/* zero output buffer */
|
||||||
for (i = 0; i < NUM_BUFS; i++)
|
for (i = 0; i < NUM_BUFS; i++)
|
||||||
bzero(ao->buffer[i], ao->buffer_len);
|
memset(ao->buffer[i], 0, ao->buffer_len);
|
||||||
|
|
||||||
pthread_mutex_unlock(&ao->buffer_mutex);
|
pthread_mutex_unlock(&ao->buffer_mutex);
|
||||||
|
|
||||||
|
@ -3138,7 +3138,7 @@ void RTjpeg_init_mcompress(void)
|
|||||||
fprintf(stderr, "RTjpeg: Could not allocate memory\n");
|
fprintf(stderr, "RTjpeg: Could not allocate memory\n");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
bzero(RTjpeg_old, ((4*RTjpeg_width*RTjpeg_height)));
|
memset(RTjpeg_old, 0, ((4*RTjpeg_width*RTjpeg_height)));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MMX
|
#ifdef MMX
|
||||||
|
@ -139,7 +139,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
|
|||||||
mp_image_t* mpi;
|
mp_image_t* mpi;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
bzero (&op, sizeof (op));
|
memset (&op, 0, sizeof (op));
|
||||||
op.bytes = len;
|
op.bytes = len;
|
||||||
op.packet = data;
|
op.packet = data;
|
||||||
op.granulepos = -1;
|
op.granulepos = -1;
|
||||||
|
@ -228,7 +228,7 @@ connect2Server_with_af(char *host, int port, int af,int verb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bzero(&server_address, sizeof(server_address));
|
memset(&server_address, 0, sizeof(server_address));
|
||||||
|
|
||||||
#ifndef HAVE_WINSOCK2
|
#ifndef HAVE_WINSOCK2
|
||||||
#ifdef USE_ATON
|
#ifdef USE_ATON
|
||||||
|
@ -819,10 +819,10 @@ subtitle *sub_read_line_jacosub(FILE * fd, subtitle * current)
|
|||||||
static unsigned jacoTimeres = 30;
|
static unsigned jacoTimeres = 30;
|
||||||
static int jacoShift = 0;
|
static int jacoShift = 0;
|
||||||
|
|
||||||
bzero(current, sizeof(subtitle));
|
memset(current, 0, sizeof(subtitle));
|
||||||
bzero(line1, LINE_LEN);
|
memset(line1, 0, LINE_LEN);
|
||||||
bzero(line2, LINE_LEN);
|
memset(line2, 0, LINE_LEN);
|
||||||
bzero(directive, LINE_LEN);
|
memset(directive, 0, LINE_LEN);
|
||||||
while (!current->text[0]) {
|
while (!current->text[0]) {
|
||||||
if (!fgets(line1, LINE_LEN, fd)) {
|
if (!fgets(line1, LINE_LEN, fd)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user