summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-04 18:31:04 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-04 18:31:04 +0000
commitb08e2e7c082ab315eb001c77eb00abcf86d57b11 (patch)
tree0d1b2e0e56151b3f97a48089be42961f9df675d7
parentd41002d21b6104c6bc545151e7f0d687a1ea8c16 (diff)
downloadmpv-b08e2e7c082ab315eb001c77eb00abcf86d57b11.tar.bz2
mpv-b08e2e7c082ab315eb001c77eb00abcf86d57b11.tar.xz
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
-rw-r--r--libao2/ao_macosx.c2
-rw-r--r--libmpcodecs/native/RTjpegN.c2
-rw-r--r--libmpcodecs/vd_theora.c2
-rw-r--r--libmpdemux/network.c2
-rw-r--r--subreader.c8
5 files changed, 8 insertions, 8 deletions
diff --git a/libao2/ao_macosx.c b/libao2/ao_macosx.c
index f3d7c7951a..2487e16b63 100644
--- a/libao2/ao_macosx.c
+++ b/libao2/ao_macosx.c
@@ -460,7 +460,7 @@ static void reset()
/* zero output buffer */
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);
diff --git a/libmpcodecs/native/RTjpegN.c b/libmpcodecs/native/RTjpegN.c
index 54ce8f6688..54fc3d0026 100644
--- a/libmpcodecs/native/RTjpegN.c
+++ b/libmpcodecs/native/RTjpegN.c
@@ -3138,7 +3138,7 @@ void RTjpeg_init_mcompress(void)
fprintf(stderr, "RTjpeg: Could not allocate memory\n");
exit(-1);
}
- bzero(RTjpeg_old, ((4*RTjpeg_width*RTjpeg_height)));
+ memset(RTjpeg_old, 0, ((4*RTjpeg_width*RTjpeg_height)));
}
#ifdef MMX
diff --git a/libmpcodecs/vd_theora.c b/libmpcodecs/vd_theora.c
index a41e2b62ef..ed59605248 100644
--- a/libmpcodecs/vd_theora.c
+++ b/libmpcodecs/vd_theora.c
@@ -139,7 +139,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
mp_image_t* mpi;
int i;
- bzero (&op, sizeof (op));
+ memset (&op, 0, sizeof (op));
op.bytes = len;
op.packet = data;
op.granulepos = -1;
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index c9b30cfc28..2a90523986 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -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
#ifdef USE_ATON
diff --git a/subreader.c b/subreader.c
index b234fe261c..ab1323eba3 100644
--- a/subreader.c
+++ b/subreader.c
@@ -819,10 +819,10 @@ subtitle *sub_read_line_jacosub(FILE * fd, subtitle * current)
static unsigned jacoTimeres = 30;
static int jacoShift = 0;
- bzero(current, sizeof(subtitle));
- bzero(line1, LINE_LEN);
- bzero(line2, LINE_LEN);
- bzero(directive, LINE_LEN);
+ memset(current, 0, sizeof(subtitle));
+ memset(line1, 0, LINE_LEN);
+ memset(line2, 0, LINE_LEN);
+ memset(directive, 0, LINE_LEN);
while (!current->text[0]) {
if (!fgets(line1, LINE_LEN, fd)) {
return NULL;