diff fifo.c @ 565:a0dab9157d6a libavutil

Deprecate av_fifo_realloc(). av_fifo_realloc2() should be used instead.
author stefano
date Tue, 19 Aug 2008 22:15:05 +0000
parents a1ac1cb9a91b
children 34198f8250cf
line wrap: on
line diff
--- a/fifo.c	Tue Aug 19 18:43:34 2008 +0000
+++ b/fifo.c	Tue Aug 19 22:15:05 2008 +0000
@@ -51,12 +51,14 @@
     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;