changeset 6518:2191d340f80d libavcodec

Apply 'alloc_size' and 'malloc' attributes to av_mallocz_static()
author zuxy
date Fri, 21 Mar 2008 03:54:45 +0000
parents 48759bfbd073
children f57fee2decd6
files avcodec.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'.