[Mplayerxp-cvslog] SF.net SVN: mplayerxp:[262] mplayerxp
Brought to you by:
olov
From: <nic...@us...> - 2012-10-30 15:15:30
|
Revision: 262 http://mplayerxp.svn.sourceforge.net/mplayerxp/?rev=262&view=rev Author: nickols_k Date: 2012-10-30 15:15:18 +0000 (Tue, 30 Oct 2012) Log Message: ----------- add useful warnings Modified Paths: -------------- mplayerxp/configure mplayerxp/libmpcodecs/vd_ffmpeg.c Modified: mplayerxp/configure =================================================================== --- mplayerxp/configure 2012-10-30 14:49:33 UTC (rev 261) +++ mplayerxp/configure 2012-10-30 15:15:18 UTC (rev 262) @@ -293,7 +293,7 @@ print_config HAVE_ mp_config.h mp_config.mak gomp #enabled gomp && check_cflags -ftree-parallelize-loops=4 ##################################################### -add_cflags "-Werror-implicit-function-declaration" +add_cflags "-Werror-implicit-function-declaration -Warray-bounds -Wreturn-type -Wuninitialized -Wlogical-op -Waddress" check_cflags "-W -Wall -Wextra" echocheck CFLAGS Modified: mplayerxp/libmpcodecs/vd_ffmpeg.c =================================================================== --- mplayerxp/libmpcodecs/vd_ffmpeg.c 2012-10-30 14:49:33 UTC (rev 261) +++ mplayerxp/libmpcodecs/vd_ffmpeg.c 2012-10-30 15:15:18 UTC (rev 262) @@ -226,8 +226,7 @@ avcodec_register_all(); vcodec_inited=1; } - vdff_ctx=mp_malloc(sizeof(priv_t)); - memset(vdff_ctx,0,sizeof(priv_t)); + vdff_ctx=mp_mallocz(sizeof(priv_t)); sh->context = vdff_ctx; vdff_ctx->frame_number=-2; vdff_ctx->lavc_codec = (AVCodec *)avcodec_find_decoder_by_name(sh->codec->dll_name); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |