diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index 1e71745782f2857be680a8f5bcacb447ff4fb61f..35f775437df8e791589a6dd941fa3cc224604dc2 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -37,7 +37,7 @@
  * @param[in] size The requested size.
  * @return Block of memory of requested size.
  */
-void *av_realloc_static(void *ptr, unsigned int size);
+void *ff_realloc_static(void *ptr, unsigned int size);
 
 void align_put_bits(PutBitContext *s)
 {
@@ -87,7 +87,7 @@ static int alloc_table(VLC *vlc, int size, int use_static)
     if (vlc->table_size > vlc->table_allocated) {
         vlc->table_allocated += (1 << vlc->bits);
         if(use_static)
-            vlc->table = av_realloc_static(vlc->table,
+            vlc->table = ff_realloc_static(vlc->table,
                                            sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
         else
             vlc->table = av_realloc(vlc->table,
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 5058420ee410eeb0ea337a7a61873508bee0210c..8855934802b01771b79d80236f642d5f35bfd3b8 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -87,7 +87,7 @@ void *av_mallocz_static(unsigned int size)
     return ptr;
 }
 
-void *av_realloc_static(void *ptr, unsigned int size)
+void *ff_realloc_static(void *ptr, unsigned int size)
 {
     int i;
     if(!ptr)