From beebfdb1e83c7759a658ba8b18d429c3a0a5de0a Mon Sep 17 00:00:00 2001
From: Panagiotis Issaris <takis.issaris@uhasselt.be>
Date: Thu, 22 Feb 2007 20:21:33 +0000
Subject: [PATCH] Move the av_realloc_static() declaration out of avcodec.h
 into bitstream.c.

Originally committed as revision 8088 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/avcodec.h   | 9 ---------
 libavcodec/bitstream.c | 9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 35c2a0a6399..f7b6e074b27 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2920,15 +2920,6 @@ void av_free_static(void);
  */
 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 --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index 22d256df51a..1e71745782f 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -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
-- 
GitLab