[FFmpeg-devel] [PATCH] Pure, const and malloc attributes to libavutil

Michael Niedermayer michaelni
Tue Mar 18 16:18:22 CET 2008


On Tue, Mar 18, 2008 at 01:09:51PM +0800, Zuxy Meng wrote:
> Hi,
> 
> The attached patch adds proper GCC attributes to functions in
> libavutil, exposing more optimization opportunities to the compiler,
> especially for a lousy client of that lib.

ok

and besides these you should also add
attribute(alloc_size) to av_m/realloc()

and attribute(cold) to all init/uninit functions over lav* :)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080318/b1fe6e52/attachment.pgp>



More information about the ffmpeg-devel mailing list