Browse code

Clarify non constness of src in av_fifo_generic_write()

Originally committed as revision 21997 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2010/02/23 21:14:13
Showing 1 changed files
... ...
@@ -78,6 +78,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) {
78 78
     return 0;
79 79
 }
80 80
 
81
+// src must NOT be const as it can be a context for func that may need updating (like a pointer or byte counter)
81 82
 int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int))
82 83
 {
83 84
     int total = size;