[FFmpeg-cvslog] lavu/fifo: add const to arguments

Lukasz Marek git at videolan.org
Mon May 5 18:08:34 CEST 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sun May  4 22:03:46 2014 +0200| [78d3453c4a2efef9bc079e8f3458653beafcf990] | committer: Michael Niedermayer

lavu/fifo: add const to arguments

Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78d3453c4a2efef9bc079e8f3458653beafcf990
---

 libavutil/fifo.c |    4 ++--
 libavutil/fifo.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavutil/fifo.c b/libavutil/fifo.c
index ca25bc5..235b53c 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -51,12 +51,12 @@ void av_fifo_reset(AVFifoBuffer *f)
     f->wndx = f->rndx = 0;
 }
 
-int av_fifo_size(AVFifoBuffer *f)
+int av_fifo_size(const AVFifoBuffer *f)
 {
     return (uint32_t)(f->wndx - f->rndx);
 }
 
-int av_fifo_space(AVFifoBuffer *f)
+int av_fifo_space(const AVFifoBuffer *f)
 {
     return f->end - f->buffer - av_fifo_size(f);
 }
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index 849b9a6..fe7364f 100644
--- a/libavutil/fifo.h
+++ b/libavutil/fifo.h
@@ -59,7 +59,7 @@ void av_fifo_reset(AVFifoBuffer *f);
  * @param f AVFifoBuffer to read from
  * @return size
  */
-int av_fifo_size(AVFifoBuffer *f);
+int av_fifo_size(const AVFifoBuffer *f);
 
 /**
  * Return the amount of space in bytes in the AVFifoBuffer, that is the
@@ -67,7 +67,7 @@ int av_fifo_size(AVFifoBuffer *f);
  * @param f AVFifoBuffer to write into
  * @return size
  */
-int av_fifo_space(AVFifoBuffer *f);
+int av_fifo_space(const AVFifoBuffer *f);
 
 /**
  * Feed data from an AVFifoBuffer to a user-supplied callback.



More information about the ffmpeg-cvslog mailing list