Mercurial > libavcodec.hg
comparison bitstream.c @ 6519:f57fee2decd6 libavcodec
Apply 'alloc_size' attribute to ff_realloc_static()
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 04:48:59 +0000 |
parents | 6335f2688c04 |
children | 24e01f7cc819 |
comparison
equal
deleted
inserted
replaced
6518:2191d340f80d | 6519:f57fee2decd6 |
---|---|
37 * @param[in] size The requested size. | 37 * @param[in] size The requested size. |
38 * @return Block of memory of requested size. | 38 * @return Block of memory of requested size. |
39 * @deprecated. Code which uses ff_realloc_static is broken/misdesigned | 39 * @deprecated. Code which uses ff_realloc_static is broken/misdesigned |
40 * and should correctly use static arrays | 40 * and should correctly use static arrays |
41 */ | 41 */ |
42 attribute_deprecated void *ff_realloc_static(void *ptr, unsigned int size); | 42 attribute_deprecated av_alloc_size(2) |
43 void *ff_realloc_static(void *ptr, unsigned int size); | |
43 | 44 |
44 void align_put_bits(PutBitContext *s) | 45 void align_put_bits(PutBitContext *s) |
45 { | 46 { |
46 #ifdef ALT_BITSTREAM_WRITER | 47 #ifdef ALT_BITSTREAM_WRITER |
47 put_bits(s,( - s->index) & 7,0); | 48 put_bits(s,( - s->index) & 7,0); |