# HG changeset patch # User takis # Date 1172175693 0 # Node ID ad02fe65f45a6443622b927d3e5eed2764127160 # Parent 715e6e3ac428e894bc192afb00669c29b4237ce7 Move the av_realloc_static() declaration out of avcodec.h into bitstream.c. diff -r 715e6e3ac428 -r ad02fe65f45a avcodec.h --- a/avcodec.h Thu Feb 22 19:16:31 2007 +0000 +++ b/avcodec.h Thu Feb 22 20:21:33 2007 +0000 @@ -2920,15 +2920,6 @@ */ void *av_mallocz_static(unsigned int size); -/** - * Same as av_mallocz_static(), but does a realloc. - * - * @param[in] ptr The block of memory to reallocate. - * @param[in] size The requested size. - * @return Block of memory of requested size. - */ -void *av_realloc_static(void *ptr, unsigned int size); - void img_copy(AVPicture *dst, const AVPicture *src, int pix_fmt, int width, int height); diff -r 715e6e3ac428 -r ad02fe65f45a bitstream.c --- a/bitstream.c Thu Feb 22 19:16:31 2007 +0000 +++ b/bitstream.c Thu Feb 22 20:21:33 2007 +0000 @@ -30,6 +30,15 @@ #include "avcodec.h" #include "bitstream.h" +/** + * Same as av_mallocz_static(), but does a realloc. + * + * @param[in] ptr The block of memory to reallocate. + * @param[in] size The requested size. + * @return Block of memory of requested size. + */ +void *av_realloc_static(void *ptr, unsigned int size); + void align_put_bits(PutBitContext *s) { #ifdef ALT_BITSTREAM_WRITER