[MPlayer-dev-eng] [PATCH] another bzero appeared ;)

Gianluigi Tiesi mplayer at netfarm.it
Wed Feb 23 03:30:23 CET 2005


I've noticed a new bzero on libmpdemux/muxer_mpeg.c,
I'm not paranoid, but I often use -O0 to compile debug mplayer version,
and yes some files still need to be compiled with -O2 since they use
registers, anyway compiling with -O0 doesn't like bzero, deprecated
anyway. I've attached the small patch.

Bye
-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
diff -NubBr -xCVS -xhelp_mp.h -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/libmpdemux/muxer_mpeg.c sherpya/libmpdemux/muxer_mpeg.c
--- main/libmpdemux/muxer_mpeg.c	2005-02-23 00:22:04.557112000 +0100
+++ sherpya/libmpdemux/muxer_mpeg.c	2005-02-23 03:23:44.410331200 +0100
@@ -380,7 +380,7 @@
     spriv->framebuf_cnt = 30;
     spriv->framebuf_used = 0;
     spriv->framebuf = init_frames(spriv->framebuf_cnt, (size_t) 5000);
-    bzero(&(spriv->picture), sizeof(spriv->picture));
+    memset(&(spriv->picture), 0, sizeof(spriv->picture));
     if(spriv->framebuf == NULL) {
       mp_msg(MSGT_MUXER, MSGL_FATAL, "Couldn't allocate initial frames structure, abort!\n");
       return NULL;


More information about the MPlayer-dev-eng mailing list