[FFmpeg-cvslog] avutil/fifo: delay addition of const from 78d3453c4a2efef9bc079e8f3458653beafcf990 until next major ABI bump

Michael Niedermayer git at videolan.org
Wed May 14 15:58:45 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 14 15:24:38 2014 +0200| [acb6f3af4fce240957b79a1e58cb0eb60db74ba6] | committer: Michael Niedermayer

avutil/fifo: delay addition of const from 78d3453c4a2efef9bc079e8f3458653beafcf990 until next major ABI bump

This unbreaks API, for example audacity has more build errors due to this

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 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 e35237c..09ffa4f 100644
--- a/libavutil/fifo.c
+++ b/libavutil/fifo.c
@@ -59,12 +59,12 @@ void av_fifo_reset(AVFifoBuffer *f)
     f->wndx = f->rndx = 0;
 }
 
-int av_fifo_size(const AVFifoBuffer *f)
+int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f)
 {
     return (uint32_t)(f->wndx - f->rndx);
 }
 
-int av_fifo_space(const AVFifoBuffer *f)
+int av_fifo_space(FF_CONST_AVUTIL53 AVFifoBuffer *f)
 {
     return f->end - f->buffer - av_fifo_size(f);
 }
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index 66fb48a..f0b1109 100644
--- a/libavutil/fifo.h
+++ b/libavutil/fifo.h
@@ -65,7 +65,7 @@ void av_fifo_reset(AVFifoBuffer *f);
  * @param f AVFifoBuffer to read from
  * @return size
  */
-int av_fifo_size(const AVFifoBuffer *f);
+int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f);
 
 /**
  * Return the amount of space in bytes in the AVFifoBuffer, that is the
@@ -73,7 +73,7 @@ int av_fifo_size(const AVFifoBuffer *f);
  * @param f AVFifoBuffer to write into
  * @return size
  */
-int av_fifo_space(const AVFifoBuffer *f);
+int av_fifo_space(FF_CONST_AVUTIL53 AVFifoBuffer *f);
 
 /**
  * Feed data from an AVFifoBuffer to a user-supplied callback.



More information about the ffmpeg-cvslog mailing list