diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index 19715ebce46ef007337d1e8eb6abba44d40297e1..b9a87835c230c4326a8de7e24cfd871feb754106 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -51,12 +51,14 @@ int av_fifo_read(AVFifoBuffer *f, uint8_t *buf, int buf_size)
     return av_fifo_generic_read(f, buf_size, NULL, buf);
 }
 
+#if LIBAVUTIL_VERSION_MAJOR < 50
 /**
  * Resizes a FIFO.
  */
 void av_fifo_realloc(AVFifoBuffer *f, unsigned int new_size) {
     av_fifo_realloc2(f, new_size);
 }
+#endif
 
 int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) {
     unsigned int old_size= f->end - f->buffer;
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index 2384f7021f7f69a6d102353c50fb68127b9f2e9b..f35ccc348a8fbe4f96f4e46f0714aac85b9fd6b3 100644
--- a/libavutil/fifo.h
+++ b/libavutil/fifo.h
@@ -93,13 +93,15 @@ attribute_deprecated void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int
  */
 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int));
 
+#if LIBAVUTIL_VERSION_MAJOR < 50
 /**
  * Resizes an AVFifoBuffer.
  * @param *f AVFifoBuffer to resize
  * @param size new AVFifoBuffer size in bytes
  * @see av_fifo_realloc2()
  */
-void av_fifo_realloc(AVFifoBuffer *f, unsigned int size);
+attribute_deprecated void av_fifo_realloc(AVFifoBuffer *f, unsigned int size);
+#endif
 
 /**
  * Resizes an AVFifoBuffer.