diff 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
line wrap: on
line diff
--- 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