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

diego subversion
Sun Jan 25 20:22:47 CET 2009


Author: diego
Date: Sun Jan 25 20:22:47 2009
New Revision: 16782

Log:
Drop deprecated av_fifo_write function with the next libavutil version bump.

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

Modified: trunk/libavutil/fifo.c
==============================================================================
--- trunk/libavutil/fifo.c	Sun Jan 25 20:18:56 2009	(r16781)
+++ trunk/libavutil/fifo.c	Sun Jan 25 20:22:47 2009	(r16782)
@@ -74,10 +74,12 @@ int av_fifo_realloc2(AVFifoBuffer *f, un
     return 0;
 }
 
+#if LIBAVUTIL_VERSION_MAJOR < 50
 void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size)
 {
     av_fifo_generic_write(f, (void *)buf, size, NULL);
 }
+#endif
 
 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int))
 {

Modified: trunk/libavutil/fifo.h
==============================================================================
--- trunk/libavutil/fifo.h	Sun Jan 25 20:18:56 2009	(r16781)
+++ trunk/libavutil/fifo.h	Sun Jan 25 20:22:47 2009	(r16782)
@@ -72,6 +72,7 @@ int av_fifo_read(AVFifoBuffer *f, uint8_
  */
 int av_fifo_generic_read(AVFifoBuffer *f, int buf_size, void (*func)(void*, void*, int), void* dest);
 
+#if LIBAVUTIL_VERSION_MAJOR < 50
 /**
  * Writes data into an AVFifoBuffer.
  * @param *f AVFifoBuffer to write to
@@ -79,6 +80,7 @@ int av_fifo_generic_read(AVFifoBuffer *f
  * @param size data size
  */
 attribute_deprecated void av_fifo_write(AVFifoBuffer *f, const uint8_t *buf, int size);
+#endif
 
 /**
  * Feeds data from a user supplied callback to an AVFifoBuffer.




More information about the ffmpeg-cvslog mailing list