From fc323a5480c14a0f1ffcb8aae06572397be4b38d Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Tue, 23 Feb 2010 12:14:13 +0000
Subject: [PATCH] Clarify non constness of src in av_fifo_generic_write()

Originally committed as revision 21997 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavutil/fifo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index 840b73a57bf..cfb716e53b1 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -78,6 +78,7 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) {
     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;
-- 
GitLab