Mercurial > libavcodec.hg
comparison bitstream.c @ 4576:ad02fe65f45a libavcodec
Move the av_realloc_static() declaration out of avcodec.h into bitstream.c.
| author | takis |
|---|---|
| date | Thu, 22 Feb 2007 20:21:33 +0000 |
| parents | c8c591fe26f8 |
| children | 88cf097ebe75 |
comparison
equal
deleted
inserted
replaced
| 4575:715e6e3ac428 | 4576:ad02fe65f45a |
|---|---|
| 27 * bitstream api. | 27 * bitstream api. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "avcodec.h" | 30 #include "avcodec.h" |
| 31 #include "bitstream.h" | 31 #include "bitstream.h" |
| 32 | |
| 33 /** | |
| 34 * Same as av_mallocz_static(), but does a realloc. | |
| 35 * | |
| 36 * @param[in] ptr The block of memory to reallocate. | |
| 37 * @param[in] size The requested size. | |
| 38 * @return Block of memory of requested size. | |
| 39 */ | |
| 40 void *av_realloc_static(void *ptr, unsigned int size); | |
| 32 | 41 |
| 33 void align_put_bits(PutBitContext *s) | 42 void align_put_bits(PutBitContext *s) |
| 34 { | 43 { |
| 35 #ifdef ALT_BITSTREAM_WRITER | 44 #ifdef ALT_BITSTREAM_WRITER |
| 36 put_bits(s,( - s->index) & 7,0); | 45 put_bits(s,( - s->index) & 7,0); |
