comparison avcodec.h @ 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 77de2a1737d4
children c7b922e9477e
comparison
equal deleted inserted replaced
6517:48759bfbd073 6518:2191d340f80d
2915 * @param[in] size The amount of memory you need in bytes. 2915 * @param[in] size The amount of memory you need in bytes.
2916 * @return block of memory of the requested size 2916 * @return block of memory of the requested size
2917 * @deprecated. Code which uses av_mallocz_static is broken/misdesigned 2917 * @deprecated. Code which uses av_mallocz_static is broken/misdesigned
2918 * and should correctly use static arrays 2918 * and should correctly use static arrays
2919 */ 2919 */
2920 attribute_deprecated void *av_mallocz_static(unsigned int size); 2920 attribute_deprecated av_malloc_attrib av_alloc_size(1)
2921 void *av_mallocz_static(unsigned int size);
2921 2922
2922 /** 2923 /**
2923 * Copy image 'src' to 'dst'. 2924 * Copy image 'src' to 'dst'.
2924 */ 2925 */
2925 void av_picture_copy(AVPicture *dst, const AVPicture *src, 2926 void av_picture_copy(AVPicture *dst, const AVPicture *src,