Mercurial > libavcodec.hg
comparison bitstream.c @ 9218:18dffa8f2382 libavcodec
Remove deprecated functions and structures on next version bump.
author | diego |
---|---|
date | Sat, 21 Mar 2009 13:51:29 +0000 |
parents | 0d5eed0f1b45 |
children | 9fc81340a5a8 |
comparison
equal
deleted
inserted
replaced
9217:53ec03e7ba40 | 9218:18dffa8f2382 |
---|---|
35 2, 2, 2, 2, 3, 3, 3, 3, | 35 2, 2, 2, 2, 3, 3, 3, 3, |
36 4, 4, 5, 5, 6, 6, 7, 7, | 36 4, 4, 5, 5, 6, 6, 7, 7, |
37 8, 9,10,11,12,13,14,15 | 37 8, 9,10,11,12,13,14,15 |
38 }; | 38 }; |
39 | 39 |
40 #if LIBAVCODEC_VERSION_MAJOR < 53 | |
40 /** | 41 /** |
41 * Same as av_mallocz_static(), but does a realloc. | 42 * Same as av_mallocz_static(), but does a realloc. |
42 * | 43 * |
43 * @param[in] ptr The block of memory to reallocate. | 44 * @param[in] ptr The block of memory to reallocate. |
44 * @param[in] size The requested size. | 45 * @param[in] size The requested size. |
51 | 52 |
52 static void *ff_realloc_static(void *ptr, unsigned int size) | 53 static void *ff_realloc_static(void *ptr, unsigned int size) |
53 { | 54 { |
54 return av_realloc(ptr, size); | 55 return av_realloc(ptr, size); |
55 } | 56 } |
57 #endif | |
56 | 58 |
57 void align_put_bits(PutBitContext *s) | 59 void align_put_bits(PutBitContext *s) |
58 { | 60 { |
59 #ifdef ALT_BITSTREAM_WRITER | 61 #ifdef ALT_BITSTREAM_WRITER |
60 put_bits(s,( - s->index) & 7,0); | 62 put_bits(s,( - s->index) & 7,0); |