# HG changeset patch # User zuxy # Date 1206071685 0 # Node ID 2191d340f80ded532d4171fa48ea0599c682c302 # Parent 48759bfbd07385eb8b5fbc9396e01141ae634708 Apply 'alloc_size' and 'malloc' attributes to av_mallocz_static() diff -r 48759bfbd073 -r 2191d340f80d avcodec.h --- a/avcodec.h Fri Mar 21 03:11:20 2008 +0000 +++ b/avcodec.h Fri Mar 21 03:54:45 2008 +0000 @@ -2917,7 +2917,8 @@ * @deprecated. Code which uses av_mallocz_static is broken/misdesigned * and should correctly use static arrays */ -attribute_deprecated void *av_mallocz_static(unsigned int size); +attribute_deprecated av_malloc_attrib av_alloc_size(1) +void *av_mallocz_static(unsigned int size); /** * Copy image 'src' to 'dst'.