[FFmpeg-cvslog] r14855 - in trunk/libavutil: fifo.c fifo.h

stefano subversion
Wed Aug 20 00:15:05 CEST 2008


Author: stefano
Date: Wed Aug 20 00:15:05 2008
New Revision: 14855

Log:
Deprecate av_fifo_realloc(). av_fifo_realloc2() should be used instead.


Modified:
   trunk/libavutil/fifo.c
   trunk/libavutil/fifo.h

Modified: trunk/libavutil/fifo.c
==============================================================================
--- trunk/libavutil/fifo.c	(original)
+++ trunk/libavutil/fifo.c	Wed Aug 20 00:15:05 2008
@@ -51,12 +51,14 @@ int av_fifo_read(AVFifoBuffer *f, uint8_
     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;

Modified: trunk/libavutil/fifo.h
==============================================================================
--- trunk/libavutil/fifo.h	(original)
+++ trunk/libavutil/fifo.h	Wed Aug 20 00:15:05 2008
@@ -93,13 +93,15 @@ attribute_deprecated void av_fifo_write(
  */
 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.




More information about the ffmpeg-cvslog mailing list