comparison bitstream.c @ 10270:fe761a493077 libavcodec

Remove ff_realloc_static, it is no longer used and since it was declared static there is no reason to wait for a major version bump, removing it does not change ABI in any way, not even the non-public one.
author reimar
date Thu, 24 Sep 2009 22:39:47 +0000
parents 74d5ddc5c0f6
children f2a8cba717b0
comparison
equal deleted inserted replaced
10269:74d5ddc5c0f6 10270:fe761a493077
35 0, 0, 0, 0, 1, 1, 1, 1, 35 0, 0, 0, 0, 1, 1, 1, 1,
36 2, 2, 2, 2, 3, 3, 3, 3, 36 2, 2, 2, 2, 3, 3, 3, 3,
37 4, 4, 5, 5, 6, 6, 7, 7, 37 4, 4, 5, 5, 6, 6, 7, 7,
38 8, 9,10,11,12,13,14,15 38 8, 9,10,11,12,13,14,15
39 }; 39 };
40
41 #if LIBAVCODEC_VERSION_MAJOR < 53
42 /**
43 * Same as av_mallocz_static(), but does a realloc.
44 *
45 * @param[in] ptr The block of memory to reallocate.
46 * @param[in] size The requested size.
47 * @return Block of memory of requested size.
48 * @deprecated. Code which uses ff_realloc_static is broken/misdesigned
49 * and should correctly use static arrays
50 */
51 attribute_deprecated av_alloc_size(2)
52 static void *ff_realloc_static(void *ptr, unsigned int size);
53
54 static void *ff_realloc_static(void *ptr, unsigned int size)
55 {
56 return av_realloc(ptr, size);
57 }
58 #endif
59 40
60 void align_put_bits(PutBitContext *s) 41 void align_put_bits(PutBitContext *s)
61 { 42 {
62 #ifdef ALT_BITSTREAM_WRITER 43 #ifdef ALT_BITSTREAM_WRITER
63 put_bits(s,( - s->index) & 7,0); 44 put_bits(s,( - s->index) & 7,0);