OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98a6fff
)
Apply 'alloc_size' and 'malloc' attributes to av_mallocz_static()
author
Zuxy Meng
<zuxy.meng@gmail.com>
Fri, 21 Mar 2008 03:54:45 +0000
(
03:54
+0000)
committer
Zuxy Meng
<zuxy.meng@gmail.com>
Fri, 21 Mar 2008 03:54:45 +0000
(
03:54
+0000)
Originally committed as revision 12526 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/avcodec.h
patch
|
blob
|
history
diff --git
a/libavcodec/avcodec.h
b/libavcodec/avcodec.h
index
68a7888
..
284ffcc
100644
(file)
--- a/
libavcodec/avcodec.h
+++ b/
libavcodec/avcodec.h
@@
-2917,7
+2917,8
@@
attribute_deprecated void av_free_static(void);
* @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'.