[FFmpeg-cvslog] r21997 - trunk/libavutil/fifo.c

michael subversion
Tue Feb 23 13:14:14 CET 2010


Author: michael
Date: Tue Feb 23 13:14:13 2010
New Revision: 21997

Log:
Clarify non constness of src in av_fifo_generic_write()

Modified:
   trunk/libavutil/fifo.c

Modified: trunk/libavutil/fifo.c
==============================================================================
--- trunk/libavutil/fifo.c	Tue Feb 23 12:15:18 2010	(r21996)
+++ trunk/libavutil/fifo.c	Tue Feb 23 13:14:13 2010	(r21997)
@@ -78,6 +78,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, un
     return 0;
 }
 
+// src must NOT be const as it can be a context for func that may need updating (like a pointer or byte counter)
 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int))
 {
     int total = size;



More information about the ffmpeg-cvslog mailing list